GWBASIC User's Manual

Total Page:16

File Type:pdf, Size:1020Kb

GWBASIC User's Manual GWBASIC User's Manual User's Guide GW-BASIC User's Guide Chapters 1. Welcome Microsoft Corporation 2. Getting Started Information in this document is subject to change without 3. Reviewing and Practicing notice and does not represent a commitment on the part of 4. The Screen Editor Microsoft Corporation. The software described in this 5. Creating and Using Files document is furnished under a license agreement or 6. Constants, Variables, nondisclosure agreement. It is against the law to copy this Expressions and Operators software on magnetic tape, disk, or any other medium for any Appendicies purpose other than the purchaser's personal use. A. Error Codes and Messages © Copyright Microsoft Corporation, 1986, 1987. All rights B. Mathematical Functions reserved. C. ASCII Character Codes D. Assembly Language Portions copyright COMPAQ Computer Corporation, 1985 E. Converting Programs Simultaneously published in the United States and Canada. F. Communications G. Hexadecimal Equivalents Microsoft®, MS-DOS®, GW-BASIC® and the Microsoft logo H. Key Scan Codes are registered trademarks of Microsoft Corporation. I. Characters Recognized Compaq® is a registered trademark of COMPAQ Computer Glossary Corporation. DEC® is a registered trademark of Digital Equipment Corporation. User's Reference Document Number 410130001-330-R02-078 ABS Function ASC Function ATN Function GW-BASIC User's Reference AUTO Command Microsoft Corporation BEEP Statement BLOAD Command Information in this document is subject to change without BSAVE Command notice and does not represent a commitment on the part of Microsoft Corporation. The software described in this CALL Statement document is furnished under a license agreement or CDBL Function nondisclosure agreement. The software may be used or copied CHAIN Statement only in accordance with the terms of the agreement. It is CHDIR Command against the law to copy this software on magnetic tape, disk, or CHR$ Function any other medium for any purpose other than the purchaser's CINT Function personal use. file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (1 of 6)28/03/2004 21.28.55 GWBASIC User's Manual CIRCLE Statement © Copyright Microsoft Corporation, 1986, 1987. All rights CLEAR Command reserved. CLOSE Statement CLS Statement Portions copyright COMPAQ Computer Corporation, 1985 COLOR Statement Simultaneously published in the United States and Canada. COM(n) Statement COMMON Statement Microsoft®, MS-DOS®, GW-BASIC®, and the Microsoft CONT Command logo are registered trademarks of Microsoft Corporation. COS Function EGA® and IBM® are registered trademarks of International CSNG Function Business Machines Corporation. CSRLIN Variable CVD Function Document Number 410130013-330-R02-0787 CVI Function CVS Function Introduction DATA Statement This manual is an alphabetical reference to GW-BASIC DATE$ Statement instructions: statements, functions, commands, and variables. DEF FN Statement The name and type of each instruction is listed at the top of the DEFINT Statement page, and is followed by: DEFDBL Statement DEFSNG Statement Purpose The purpose of the instruction DEFSTR Statement Syntax The complete notation of the instruction DEF SEG Statement Comments Pertinent information about the instruction, and DEF USR Statement what happens when it is encountered by GW- DELETE Command BASIC An illustration of the instruction as it might DIM Statement Examples DRAW Statement appear in a program Notes Any special information about the instruction EDIT Command END Statement ENVIRON Statement ENVIRON$ Function EOF Function ERASE Statement ERDEV($) Variables ERL Variable ERR Variable ERROR Statement EXP Function EXTERR Function FIELD Statement file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (2 of 6)28/03/2004 21.28.55 GWBASIC User's Manual FILES Command FIX Function FOR Statement FRE Function GET Statement (Files) GET Statement (Graphics) GOSUB-RETURN Statement GOTO Statement HEX$ Function IF Statement INKEY$ Variable INP Function INPUT Statement INPUT# Statement INPUT$ Function INSTR Function INT Function IOCTL Statement IOCTL$ Function KEY Statement KEY(n) Statement KILL Command LEFT$ Function LEN Function LET Statement LINE Statement LINE INPUT Statement LINE INPUT# Statement LIST Command LLIST Command LOAD Command LOC Function LOCATE Statement LOCK Statement LOF Function LOG Function LPOS Function LPRINT Statement file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (3 of 6)28/03/2004 21.28.55 GWBASIC User's Manual LPRINT USING Statement LSET Statement MERGE Command MID$ Function MID$ Statement MKDIR Command MKD$ Function MKI$ Function MKS$ Function NAME Command NEXT Statement NEW Command OCT$ Function ON COM(n) Statement ON KEY(n) Statement ON PEN Statement ON PLAY(n) Statement ON STRIG(n) Statement ON TIMER(n) Statement ON ERROR GOTO Statement ON-GOSUB Statement ON-GOTO Statement OPEN Statement OPEN "COM(n) Statement OPTION BASE Statement OUT Statement PAINT Statement PALETTE Statement PALETTE USING Statement PCOPY Command PEEK Function PEN Statement and Function PLAY Statement PLAY(n) Function PMAP Function POINT Function POKE Statement POS Function PRESET Statement file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (4 of 6)28/03/2004 21.28.55 GWBASIC User's Manual PSET Statement PRINT Statement PRINT USING Statement PRINT# Statement PRINT# USING Statement PUT Statement (Files) PUT Statement (Graphics) RANDOMIZE Statement READ Statement REM Statement RENUM Command RESET Command RESTORE Statement RESUME Statement RETURN Statement RIGHT$ Function RMDIR Command RND Function RSET Statement RUN Command SAVE Command SCREEN Function SCREEN Statement SGN Function SHELL Statement SIN Function SOUND Statement SPACE$ Function SPC Function SQR Function STICK Function STOP Statement STR$ Function STRIG Statement STRIG(n) Statement STRING$ Function SWAP Statement SYSTEM Command TAB Function file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (5 of 6)28/03/2004 21.28.55 GWBASIC User's Manual TAN Function TIME$ Statement TIMER Function TROFF Command TRON Command UNLOCK Statement USR Function VAL Function VARPTR Function VARPTR$ Function VIEW Statement VIEW PRINT Statement WAIT Statement WHILE-WEND Statement WIDTH Statement WINDOW Statement WRITE Statement WRITE# Statement file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/index.html (6 of 6)28/03/2004 21.28.55 GW-BASIC User's Guide Chapter 1 Welcome to GW-BASIC Notational Conventions Microsoft® GW-BASIC® is a simple, easy-to-learn, easy-to-use computer programming language with English-like statements and mathematical notations. With GW-BASIC you will be able to write both simple and complex programs to run on your computer. You will also be able to modify existing software that is written in GW-BASIC. This guide is designed to help you use the GW-BASIC Interpreter with the MS-DOS® operating system. Section 1.5 lists resources that will teach you how to program. 1.1 System Requirements This version of GW-BASIC requires MS-DOS version 3.2 or later. 1.2 Preliminaries Your GW-BASIC files will be on the MS-DOS diskette located at the back of the MS-DOS User's Reference. Be sure to make a working copy of the diskette before you proceed. Note This manual is written for the user familiar with the MS-DOS operating system. For more information on MS-DOS, refer to the Microsoft MS-DOS 3.2 User's Guide and User's Reference. 1.3 Notational Conventions Throughout this manual, the following conventions are used to distinguish elements of text: bold Used for commands, options, switches, and literal portions of syntax that must appear exactly as shown. italic Used for filenames, variables, and placeholders that represent the type of text to be entered by the user. monospaceUsed for sample command lines, program code and examples, and sample sessions. SMALL CAPS Used for keys, key sequences, and acronyms. Brackets surround optional command-line elements. file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/Chapter 1.html (1 of 3)28/03/2004 21.28.56 GW-BASIC User's Guide 1.4 Organization of This Manual The GW-BASIC User's Guide is divided into six chapters, nine appendixes, and a glossary: Chapter 1, "Welcome to GW-BASIC," describes this manual. Chapter 2, "Getting Started with GW-BASIC," is an elementary guideline on how to begin programming. Chapter 3, "Reviewing and Practicing GW-BASIC," lets you use the principles of GW-BASIC explained in Chapter 2. Chapter 4, "The GW-BASIC Screen Editor," discusses editing commands that can be used when inputting or modifying a GW-BASIC program. It also explains the unique properties of the ten re- definable function keys and of other keys and keystroke combinations. Chapter 5, "Creating and Using Files," tells you how to create files and to use the diskette input/ output (I/O) procedures. Chapter 6, "Constants, Variables, Expressions, and Operators," defines the elements of GW- BASIC and describes how you will use them. Appendix A, "Error Codes and Messages," is a summary of all the error codes and error messages that you might encounter while using GW-BASIC. Appendix B, "Mathematical Functions," describes how to calculate certain mathematical functions not intrinsic to GW-BASIC. Appendix C, "ASCII Character Codes," lists the ASCII character codes recognized by GW- BASIC. Appendix D, "Assembly Language (Machine Code) Subroutines," shows how to include assembly language subroutines with GW-BASIC. Appendix E, "Converting
Recommended publications
  • Hacker's Handbook for Ringzer0 Training, by Steve Lord
    Hacker’s Handbook For Ringzer0 Training, by Steve Lord This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Copyright ©2021 Raw Hex Ltd. All Rights Reserved. Retro Zer0 is a trademark of Ring Zer0 Training. Raw Hex is a trademark of Raw Hex Ltd. All other trademarks are the property of their respective owners. Raw Hex Ltd reserve the right to make changes or improvements to equipment, software and documentation herein described at any time and without notice. Notice: Please be advised that your Retro Zer0 has no warranty, and that tampering with the internal hardware and software of your Ring Zer0 is widely encouraged as long as you do so with appropriate regard to safety. Contents 1 Preface 5 1.1 Safety ........................... 6 1.2 Understanding This Document ............ 6 2 Before You Start 7 2.1 Check You Have Everything .............. 7 2.2 Back Up The SD Card ................. 8 2.3 Connecting Up Your Retro Zer0 ............ 8 2.4 Powering Up ....................... 10 2.5 Resetting Your Retro Zer0 . 10 2.6 Powering Down ..................... 10 3 First Steps 11 3 4 CONTENTS 3.1 Testing The Keyboard . 11 3.2 Using CP/M ....................... 12 3.3 Would You Like To Play A Game? . 14 3.4 MultiCPM Extras ..................... 17 3.5 Useful Tools ....................... 19 3.6 What’s On The Card? . 20 3.7 Putting It All Together . 23 3.8 Where To Read More . 25 4 Being Productive With Retro Zer0 27 4.1 WordStar .........................27 4.2 Supercalc .........................30 4.3 DBase ...........................32 4.4 Microsoft BASIC .....................32 4.5 Turbo Pascal .......................34 4.6 Forth 83 .........................36 4.7 ZDE ............................38 4.8 Z80 Assembler .....................39 4.9 Hi-Tech C .........................43 4.10 XLisp ...........................46 CONTENTS 5 4.11 Installing New Software .
    [Show full text]
  • BASIC Programs for Computing Displacements, Strains, and Tilts from Quadrilateral Measurements
    DEPARTMENT OF THE INTERIOR U.S. GEOLOGICAL SURVEY BASIC programs for computing displacements, strains, and tilts from quadrilateral measurements by Arvid M. Johnson and r> Rex L. Baum Open-File Report 87-3^3 Any use of trade names in this report is for descriptive purposes only and does not imply endorsement by the U.S. Geological Survey. This report is preliminary and has not been reviewed for conformity with U.S. Geological Survey editorial standards. University of Cincinnati (M.L. 13) U.S. Geological Survey Cincinnati, Ohio M5221 Box 250H6, MS 966 Denver, CO 80225 1987 INTRODUCTION Since 1983, we have been using quadrilaterals defined by survey stakes (fig. 1) to measure displacements, strains, and tilts at the surfaces of landslides. A companion paper will describe the use of quadrilaterals and give derivations of the equations needed to compute displacements, strains, and tilts. This report provides user instructions for, and listings of, BASIC programs that perform the computations. It is assumed that the reader is familiar with MBASIC and CP/M. However, we have tried to make the user instructions complete and step by step so that the average user can run the programs successfully. B (a) (b) Figure 1. Quadrilateral, (a) Isometric view showing survey stakes on a hillside, (b) Plan view. By convention, stake A has the highest elevation and the other stakes are named B, C, and D in clockwise rotation from A. In the field, the slope distance between each pair of stakes and the elevation of each stake is measured. The azimuth of line AC is used to orient the data.
    [Show full text]
  • While Statement in C
    While Statement In C EnricoIs Reg alwaysdisheartening deplete or his novel aspects when chagrined luminesced disputatiously, some crayfishes he orbits clump so temporizingly? grindingly. Solid Ring-necked and comose Bennet Brendan tarnishes never tensehalf-and-half his Stuttgart! while Thank you use a counter is a while loop obscures the condition which is evaluated to embed videos in while c program C while loops statement allows to repeatedly run at same recipient of code until a wrap is met while loop is empty most basic loop in C programming while loop. We then hand this variable c in the statement block and represent your value for each. While adultery in C Set of instructions given coil the compiler to night set of statements until condition becomes false is called loops. If it is negative number added to the condition in c language including but in looping structures, but is executed infinite loop! While Loop Definition Example & Results Video & Lesson. While talking in C Know Program. What is the while eternal in C? A while loop around loop continuously and infinitely until the policy inside the parenthesis becomes false money must guard the. C while and dowhile Loop Programiz. Programming While Loop. The widow while redeem in the C language is basically a post tested loop upon the execution of several parts of the statements can be repeated by reckless use children do-while. 43 Loops Applications in C for Engineering Technology. Do it Loop in C Programming with Examples Phptpoint. Statements and display control C Tutorials Cpluspluscom. Do while just in c example program.
    [Show full text]
  • MIC5161 Win 2003 Launch V6
    Microsoft Windows Server 2003 and Microsoft Visual Studio .NET 2003 Launch Guide Do more with less. 1 Contents Introduction 2 Introducing Microsoft® Windows® Server 2003 4 Windows Server 2003 Case Studies 10 Introducing Microsoft® Visual Studio® .NET 2003 26 Visual Studio .NET 2003 Case Studies 41 Australian .NET Connected Partners 47 Microsoft® SQL Server™ 52 Microsoft Exchange Server 53 Windows Server 2003 and Visual Studio .NET 2003 Launch Sponsors 55 Platform Partner 56 Platinum Sponsors 61 Gold Sponsors 81 Silver Sponsors 96 Australian Windows Server 2003 JDP 100 Microsoft Gold Certified Partners 102 2 3 Welcome to the launch of Windows Server 2003! This is an exciting time for In my ten or more years in the Australian developer community, the combination Microsoft, our partners and customers, as this is unquestionably the most of Microsoft Windows Server 2003 and Microsoft Visual Studio® .NET 2003 is customer-focused Windows Server release yet. The reality of today’s IT environment the most exciting launch I have ever been involved with. Last February, Microsoft is the demand to do more with technology and, at the same time, do it with reset the bar for innovation and productivity with a new development paradigm for less cost. Over the last two years, we have spent time with customers using building Web Services and applications – Visual Studio .NET. This year, we build Microsoft® Windows® 2000 Server and Windows NT® Server 4.0 to really on that momentum by offering an entire development platform for the building understand what it would take to enable them do a lot more with Windows Server and execution of those applications.
    [Show full text]
  • Scanned Document
    OJ )> Vl () 0 ,0 ,m' I 1-V II&JS mm&Radio4 I nederlandse ornroep stichting I THE CHIP SHOP BASICODE2 mmmRadio4 - Broadcasting Support Services CONTENTS ©NOS nederlandse omroep stichting, Hilversum, Netherland 1. INTRODUCTION 5 ISBN 0-906965-14-4 2. HOW TO USE BASICODE-2 7 This edition first published by Broadcasting Support Services January 1984 3. BASICODE- THE SPECIFICATIONS 9 THE CHIP SHOP BBC Radio4 4. BASICODE-2 PROTOCOL 12 British Broadcasting Corporation Portland Place 5. APPLE II & lie 26 London W1A 1AA 6. BBC (A& B) 29 All rights reserved. This handbook and the accompanying computer programs are copyright. No part of this handbook or 7. COMMODORE COMPUTERS 31 the accompanying computer programs may be reproduced, 8. SHARP MZSOA 36 translated, copied or transmitted by any means whatsoever without the prior written permission of the copyright owners. 9. SINCLAIR ZX81 37 The publisher assumes no responsibility for errors, nor liability 10. TANDY TRS-80 & VIDEOGENIE 41 for loss or damage, however caused, arising from the use of the Basicode 2 kit. 11. THE FUTURE 47 The BASICODE-2 kit is available for £3.95 frorr:: Broadcasting Support Services P.O. Box? London W3 6XJ Please make cheques or postal orders payable to Broadcasting Support Services. Published for The Chip Shop, Radio 4, by Broadcasting Support Services- an independent educational charity providing follow­ up services for viewers and listeners. Introduction Chapter One BASICODE-2 INTRODUCTION BASICODE has been developed by the radio programme Hobbyscoop This book and the accompanying cassette contain the details of NOS­ which is broadcast weekly by Nederlanse Omroep Stichting (NOS), BASICODE.
    [Show full text]
  • Detecting and Escaping Infinite Loops Using Bolt
    Detecting and Escaping Infinite Loops Using Bolt by Michael Kling Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Masters of Engineering in Electical Engineering and Computer Science at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY February 2012 c Massachusetts Institute of Technology 2012. All rights reserved. Author.............................................................. Department of Electrical Engineering and Computer Science February 1, 2012 Certified by. Martin Rinard Professor Thesis Supervisor Accepted by . Prof. Dennis M. Freeman Chairman, Masters of Engineering Thesis Committee 2 Detecting and Escaping Infinite Loops Using Bolt by Michael Kling Submitted to the Department of Electrical Engineering and Computer Science on February 1, 2012, in partial fulfillment of the requirements for the degree of Masters of Engineering in Electical Engineering and Computer Science Abstract In this thesis we present Bolt, a novel system for escaping infinite loops. If a user suspects that an executing program is stuck in an infinite loop, the user can use the Bolt user interface, which attaches to the running process and determines if the program is executing in an infinite loop. If that is the case, the user can direct the interface to automatically explore multiple strategies to escape the infinite loop, restore the responsiveness of the program, and recover useful output. Bolt operates on stripped x86 and x64 binaries, analyzes both single-thread and multi-threaded programs, dynamically attaches to the program as-needed, dynami- cally detects the loops in a program and creates program state checkpoints to enable exploration of different escape strategies. This makes it possible for Bolt to detect and escape infinite loops in off-the-shelf software, without available source code, or overhead in standard production use.
    [Show full text]
  • Mbasic Vt180, Vs.21 Getting Started with Mbasic Vt180
    MBASIC VT180, VS.21 GETTING STARTED WITH MBASIC VT180 AA-P22SA-TV MBASIC VTlS0, VS.21 GETTING STARTED WITH MBASIC VT180 AA-P22SA-TV developed by MICROSOFT CORPORATION Bellevue, Washing ton DIGITAL EQUIPMENT CORPORATION Maynard, Massachusetts / .. The information in this document is subject to change without notice and should not be construed as a com­ mitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may only be used or copied in accordance with the terms of such license. No responsibility is assumed for the. use or reliability of software by DIGITAL or its affiliated companies. Copyr ig ht @ 1981, MICROSOFT CORPORATION Licensed to DIGITAL EQUIPMENT CORPORATION, Maynard, Massachusetts. The following are trademarks of Digital Equipment Corporation: ASSIST DIGITAL RSTS COMPUTER LABS EDUsystem RSX COMTEX FLIP CHIP RTS-8 DATATRIEVE FOCAL SBI DDT lAS TMS-ll DEC INDAC TRAX DECCOMM ITPS-IO TYPESET-8 DECmate LAB-8 TYPESET-II DECnet MASSBUS UNIBUS DECSYSTEM-IO OMNIBUS VAX DECSYSTEM-20 OS/8 VMS DECtape PDP VT DECUS PDT Work Processor DECwriter PHA VT180 DIBOL CP/M is a trademark of Digital Research PRODUCT EXCEPTION REPORTING SERVICE: If, prior to SEPTEMBER 1, 1983, the customer encounters a problem wi th the software as orig inally furnished, a Product Exception Report may be submitted to: Digital Equipment Corporation BOX A 146 Main Street Maynard, MA 01754 Through the software authors, DIGITAL will, wi thout addi tional charg e, respond to the reported error in the current unaltered release of the software by issuing any known correction informa­ tion to the customer reporting the problem and/or issuing notice of the availability of corrected code.
    [Show full text]
  • CS 161, Lecture 8: Error Handling and Functions – 29 January 2018 Revisit Error Handling
    CS 161, Lecture 8: Error Handling and Functions – 29 January 2018 Revisit Error Handling • Prevent our program from crashing • Reasons programs will crash or have issues: • Syntax Error – prevents compilation, the programmer caused this by mistyping or breaking language rules • Logic Errors – the code does not perform as expected because the underlying logic is incorrect such as off by one, iterating in the wrong direction, having conditions which will never end or be met, etc. • Runtime Errors – program stops running due to segmentation fault or infinite loop potentially caused by trying to access memory that is not allocated, bad user input that was not handled, etc. check_length • The end of a string is determined by the invisible null character ‘\0’ • while the character in the string is not null, keep counting Assignment 3 Notes • Allowed functions: • From <string>: .length(), getline(), [], += • From <cmath>: pow() • Typecasting allowed only if the character being converted fits the stated criterion (i.e. character was confirmed as an int, letter, etc.) • ASCII Chart should be used heavily http://www.asciitable.com/ Debugging Side Bar • Read compiler messages when you have a syntax error • If you suspect a logic error -> print everything! • Allows you to track the values stored in your variables, especially in loops and changing scopes • Gives you a sense of what is executing when in your program Decomposition • Divide problem into subtasks • Procedural Decomposition: get ready in the morning, cooking, etc. • Incremental Programming:
    [Show full text]
  • Exploring Student Perceptions About the Use of Visual Programming
    Exploring student perceptions about the use of visual programming environments, their relation to student learning styles and their impact on student motivation in undergraduate introductory programming modules Maira Kotsovoulou (BSc, MSc) July 2019 This thesis is submitted in partial fulfilment of the requirements for the degree of Doctor of Philosophy. Department of Educational Research, Lancaster University, UK. Exploring student perceptions about the use of visual programming environments, their relation to student learning styles and their impact on student motivation in undergraduate introductory programming modules Maira Kotsovoulou (BSc, MSc) This thesis results entirely from my own work and has not been offered previously for any other degree or diploma. The word count is 57,743 excluding references. Signature ........................................................ Maira Kotsovoulou (BSc, MSc) Exploring student perceptions about the use of visual programming environments, their relation to student learning styles and their impact on student motivation in undergraduate introductory programming modules Doctor of Philosophy, July 2019 Abstract My research aims to explore how students perceive the usability and enjoyment of visual/block-based programming environments (VPEs), to what extent their learning styles relate to these perceptions and finally to what extent these tools facilitate student understanding of basic programming constructs and impact their motivation to learn programming. My overall methodological approach is a case study that explores the nature of potential benefits to using a VPE in an introductory programming module, within the specific context of an English-speaking institution of higher learning in Southern Europe. Part 1 of this research is a pilot study, which uses participatory action research as a methodological practice to identify which visual programming environment will be selected for the main study.
    [Show full text]
  • Programmierung Unter GNU/Linux Für Einsteiger
    Programmierung unter GNU/Linux fur¨ Einsteiger Edgar 'Fast Edi' Hoffmann Community FreieSoftwareOG [email protected] 7. September 2016 Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. Programmierung Begriffserkl¨arung 2 / 35 Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. Programmierung Begriffserkl¨arung Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. 2 / 35 Programmierung Begriffserkl¨arung Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. 2 / 35 Programme werden unter Verwendung von Programmiersprachen formuliert ( kodiert\). " In eine solche Sprache ubersetzt\¨ der Programmierer die (z. B. im Pflichtenheft) " vorgegebenen Anforderungen und Algorithmen. Zunehmend wird er dabei durch Codegeneratoren unterstutzt,¨ die zumindest
    [Show full text]
  • Automatic Repair of Infinite Loops
    Automatic Repair of Infinite Loops Sebastian R. Lamelas Marcote Martin Monperrus University of Buenos Aires University of Lille & INRIA Argentina France Abstract Research on automatic software repair is concerned with the develop- ment of systems that automatically detect and repair bugs. One well-known class of bugs is the infinite loop. Every computer programmer or user has, at least once, experienced this type of bug. We state the problem of repairing infinite loops in the context of test-suite based software repair: given a test suite with at least one failing test, generate a patch that makes all test cases pass. Consequently, repairing infinites loop means having at least one test case that hangs by triggering the infinite loop. Our system to automatically repair infinite loops is called Infinitel. We develop a technique to manip- ulate loops so that one can dynamically analyze the number of iterations of loops; decide to interrupt the loop execution; and dynamically examine the state of the loop on a per-iteration basis. Then, in order to synthesize a new loop condition, we encode this set of program states as a code synthesis problem using a technique based on Satisfiability Modulo Theory (SMT). We evaluate our technique on seven seeded-bugs and on seven real-bugs. Infinitel is able to repair all of them, within seconds up to one hour on a standard laptop configuration. 1 Introduction Research on automatic software repair is concerned with the development of sys- tems that automatically detect and repair bugs. We consider as bug a behavior arXiv:1504.05078v1 [cs.SE] 20 Apr 2015 observed during program execution that does not correspond to the expected one.
    [Show full text]
  • The MSX Red Book (Revised Version 1997/08/06) Notes from The
    The MSX Red Book (revised version 1997/08/06) Notes from the editor: - The book was scanned and converted (via O.C.R.) by one person and edited by another (using an IBM PC compatible), independently. - All pages have a fix size of 64 lines. The width was not justified to make future modifications easier, though no line is longer than 80 columns. - This book only covers standard MSX. The BIOS entry points from 0000H to 01B5H should be used instead of the called entries described in the book, because other machines (MSX2, MSX2+, MSX turbo R and customized ones) have different positions for the routines. The use of internal BIOS routine addresses are responsible for many programs only running in MSX. - Some errors present in the original book were fixed, though it was tried to keep it as unaltered as possible. All page numbers match the originals, except undetected errors already present in the original. - Most figures were modificated due to the text-only nature of this file. The character set used during edition was the International IBM PC's one. The following special characters were used and should be changed to the corresponding ones of other character sets: Frame ÚÄÂÄ¿ Pound: œ characters: ³ ³ ³ Micro: æ ÃÄÅÄ´ ³ ³ ³ ÀÄÁÄÙ ------------------------------------------------------------------------------- CONTENTS Introduction .............................. 1 1. Programmable Peripheral Interface ...... 3 2. Video Display Processor ................ 8 3. Programmable Sound Generator ........... 21 4. ROM BIOS ............................... 26 5. ROM BASIC Interpreter .................. 89 6. Memory Map ............................. 208 7. Machine Code Programs .................. 240 Contents Copyright 1985 Avalon Software Iver Lane, Cowley, Middx, UB8 2JD MSX is a trademark of Microsoft Corp.
    [Show full text]