Here - 1000 BiT
Here - 1000 BiT Here - 1000 BiT
These two ways throw away all the variable boxes made the last time, thenexecute the program.RUNRUN XXstarts at the first line of the programstarts at line XXCONT can restart only a program that was stopped with a break from a STOP commandor by pressing the STOP key.But RUN, RUN XX and GOTO XX can also start a new program.OODEBUGGINGLittle errors in your program are called bugs.If your program doesn't run right, do these four things:1. If the computer printed an ERROR MESSAGE, it tells what line it stopped on.Careful, the mistake may really be in another line!2. If the computer just keeps running but doesn't do the right thing, stop it and put insome PRINT lines which will tell what is happening.u3. Or you can put STOP commands into the program.4. If the program runs so fast that you can't tell what is happening, put in some delayloops to slow it down.After you have fixed the program, take the PRINT lines, the STOPs and the delayloops out of the program.O(jAssignment 33:1. Go back to the SNAKE program and fix up some of the bugs. For example, theprogram "crashes" when the snake hits a wall. Add "food" for the snake. Add scorekeeping. Let the game end if the snake touches a wall.o2. Write a "shape shifter" program. A shape shifter is a demon which starts in one shapeand shifts around its parts to make other shapes.194
RESERVED WORDSABSAND ASC ATNCHR$CLR CMD CLOSECONTCOSDATADEFDIMENDEXP FN FORGETGOSUBGOTOFREIFINPUT INPUT# INTLEFT$LEN LET LISTLOADLOGMID$nNEWNEXTNOTONORPRINTOPENPRINT#PEEKPOKEPOSREADREMRUNRESTORE RETURN RIGHT$RNDSAVESGNSTOPSINSTR$SPC(SYSSTEPTAB(TANTHENUSRVALVERIFYWAIT195
- Page 143 and 144: THE IF COMMAND TELLS LITTLE WHITE L
- Page 145 and 146: THE LOGIC SIGNSYou can use these si
- Page 147 and 148: LESSON 26 SNIPPING STRINGS: LEFTS,
- Page 149 and 150: CUTTING A PIECE OUT OF THE MIDDLETh
- Page 151 and 152: nnO INSTRUCTOR NOTES 27 SWITCHING N
- Page 153 and 154: MAKING NUMBERS INTO STRINGSRun10 RE
- Page 155 and 156: Assignment 27:1. Write a program wh
- Page 157 and 158: LESSON 28ACTION GAMES AND THE FUNCT
- Page 159 and 160: LOOKING IN THE KEYBOARD'S BOXHere i
- Page 161 and 162: Run it. It puts a white diamond on
- Page 163 and 164: cTHETARGETS ARE HEARTSAdd these lin
- Page 165 and 166: LESSON 29MUSICGo back and review th
- Page 167 and 168: REGISTER ADDRESSES Base address is
- Page 169 and 170: D^ INSTRUCTOR NOTES 30 ARRAYS AND T
- Page 171 and 172: The DIM... command tells the comput
- Page 173 and 174: 1 REM *** EIGHT QUEENS ***2 GOTO 10
- Page 175 and 176: Assignment 30:1. Write a program wh
- Page 177 and 178: LESSON 31SPRITES FOR ACTION GRAPHIC
- Page 179 and 180: Then use the CRSR keys to move the
- Page 181 and 182: MANY SPRITES AT ONCEHere are the bo
- Page 183 and 184: WATCH OUT, TWO SPRITES ARE GOING TO
- Page 185 and 186: LESSON 32USER FRIENDLY PROGRAMSTher
- Page 187 and 188: TIE A STRING AROUND THE USER'S FING
- Page 189 and 190: SET TRAPS FOR ERRORSExample: Add th
- Page 191 and 192: LESSON 33DEBUGGING, STOP, CONTTHE S
- Page 193: Use the PRINT command to look at va
- Page 197 and 198: ells and whistlesA phrase going bac
- Page 199 and 200: error trapPart of a program which c
- Page 201 and 202: listingA list of all the lines in a
- Page 203 and 204: emarkA comment you make in the prog
- Page 205 and 206: variableA name given to a box in me
- Page 207 and 208: FORMULA TOO COMPLEXYou wrote a stri
- Page 209 and 210: SYNTAXYou "spelled" the line wrong.
- Page 211 and 212: 1 REM A4-310 REM*** SMILE***13 POKE
- Page 213 and 214: 1 REM A6-210 REM*** FAVORITE***15 P
- Page 215 and 216: ~ 40 INPUT C$1 REM A9B-210 REM ***
- Page 217 and 218: ^ 1 REM A11A-210 REM !"#$% INSULTS
- Page 219 and 220: 1 REM A12B-410 REM *** PICK A CARD
- Page 221 and 222: ^ 1 REM A15-210 REM!!! VACATION!!!r
- Page 223 and 224: ■1 REMA17B-510 REM*** OPERA SOPRA
- Page 225 and 226: 1 REM A22-110 REM *** COLORED BOX *
- Page 227 and 228: 1 REM A24B-1r> 10 REM*** SUBROUTINE
- Page 229 and 230: 1 REM A26-210 REM*** ANSWERER***12
- Page 231 and 232: 1 REM A27-110 REM *** BACKWARD ***1
- Page 233 and 234: 441 FOR l=2 TO LEN(A$]442L1$=MID$(F
- Page 235 and 236: INDEX OF TOPICSaddition 59,74ADSR 1
- Page 237 and 238: memory 16, 24-26, 45, 59, 81, 83,11
- Page 239: nnnnnnonnnOnooonnnnnnnnonnnHnonnOn
RESERVED WORDSABSAND ASC ATNCHR$CLR CMD CLOSECONTCOSDATADEFDIMENDEXP FN FORGETGOSUBGOTOFREIFINPUT INPUT# INTLEFT$LEN LET LISTLOADLOGMID$nNEWNEXTNOTONORPRINTOPENPRINT#PEEKPOKEPOSREADREMRUNRESTORE RETURN RIGHT$RNDSAVESGNSTOPSINSTR$SPC(SYSSTEPTAB(TANTHENUSRVALVERIFYWAIT195