11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ANOTHER WAY TO STOP RUNNING THE PROGRAMYou can stop running the program by pressing the STOP key.Try it:10 REM GO FOREVER15 PRINT "clrdn"16GOSUB9020 PRINT "MUD dn"21 GOSUB9022 PRINT" TURTLES dn"23 GOSUB 9024 PRINT" OFdn"25 GOSUB 9026 PRINT"THEdn"27 GOSUB 9028 PRINT"WORLD dn"29 GOSUB 9030 PRINT"UNITE! dn"31 GOSUB 9040 GOTO 1090 FOR T=1 TO <strong>1000</strong>:NEXTT:RETURNPressing the STOP key stops the program at whatever spot it is. It prints:BREAK INLINE XX and enters the edit mode(XX is the line number where it stops.)The command CONT starts the program again at the same spot.The above program usually stops in line 90. Why? Try to make the above program stopin some other line.WHAT DO YOU DO AFTER YOU STOP?You put STOP into whatever part of your program is not working right Then you runthe program. After it stops, you look to see what happened.(Or you use the STOP key to stop the program, but it may not stop in the spot where thetrouble is.)Put on your thinking cap. Ask yourself questions about what happened as the programran.You are in the Edit mode. You can:List parts of the program and study them.192

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!