home *** CD-ROM | disk | FTP | other *** search
/ Run Magazine ReRun 1986 September & October / rerun-1986-09-10.d64 / sub1 (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  297b  |  9 lines

  1. 1000 rem *** sample overlay sub1 ***
  2. 1010 poke 43,1 : poke 44,8 : rem must be first line.
  3. 1020 print:print"this is the overlay."
  4. 1030 print:print"press any key to return to"
  5. 1040 print"the main program."
  6. 1050 geta$ : if a$="" then 1050
  7. 1060 z=2:rem z tells main program where to resume execution
  8. 1070 p$="main" : goto 10 : rem load main again.
  9.