Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

25 44 END 57 IF N=18 THEN PRINT "GOTO OR NOT TO GOTO" 60 IF N>35 THEN GOTO 110 78 GOTO 40 95 PRINT "**THE GOTO SHOW**": GOTO 40 100 N=0: GOTO 16 105 PRINT "GOT TO GOTO GOTO NOW" 110 GOTO 44 115 PRINT "GOTO OR NOT TO GOTO";:GOTO 60 >RENUMBER >LIST 10 REM ** GOTO GOTO GOTO 20 REM WITH ACKNOWLEDGEMENTS TO 30 REM "COMPUTERS IN SCHOOLS" 40 REM THE JOURNAL OF MUSE 50 GOTO 130 60 GOTO 120 70 N=N+1 80 END 90 IF N=18 THEN PRINT "GOTO OR NOT TO GOTO" 100 IF N>35 THEN GOTO 150 110 GOTO 70 120 PRINT "**THE GOTO SHOW**": GOTO 70 130 N=0:

GOTO 60 140 PRINT "GOT TO GOTO GOTO NOW" 150 GOTO 80 160 PRINT "GOTO OR NOT TO GOTO";:GOTO 100 >RUN **THE GOTO SHOW** As you will see, the RENUMBER command has not only renumbered the references to line numbers which occur within the program itself – namely after the statements containing the keyword GOTO . (This gives the computer the instruction to go to a particular line number and carry out the instruction it finds there.) Removing a program If you want to write a new program you will want to remove the old program from the computer’s memory. This can be done by using the command NEW , or by pressing the BREAK key.

In either case, if you regret having lost your program, type OLD and press RETURN and, providing you haven’t begun to type in the new program , the old one should reappear. You can always check what’s in the memory by typing LIST . Try experimenting with these various commands on the program you have typed in.