This BASIC program below will POKE in a machine language routine which resets the disk
boot pointer to a new program that essentially types RUN when you push [SYSTEM RESET].
This is easy to do for machine language programs, but is not so clear for BASIC programs.
To make machine language programs restart, put the initialization address in locations
12 and 13 ( OC and OD). [SYSTEM RESET] will just start the program over.
To reset and RUN a BASIC program, type in this routine (it goes in page 6). Then LOAD
your BASIC program. Type POKE 12,0 and POKE 13,6 to run the program when SYSTEM RESET
is pressed. You can put the POKEs in the program if you are not going to have to access
the disk drive in the program.
10 FOR B=1536 TO 1590:READ A:POKE B,A:NEXT B
20 DATA 162,0,142,68,2,232,134,9,173,48,2,133,203,173
30 DATA 49,2,133,204,160,4,177,203,133,205,200,177,203
40 DATA 133,206,162,0,1
50 DATA 3,208,245,169,12,141,252,2,108,250,191,50,53,46
55 LIST 60,70
60 REM **BE SURE TO POKE 12,0 AND
70 REM ** * POKE 13,6 AFTER TYPING RUN