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

  1. 1000 rem *** main overlay ***
  2. 1010 poke 43,1 : poke 44,8 : rem must be first line of overlay!
  3. 1020 if z=2 then 2000 : rem this was setby the overlay sub1.
  4. 1030 print"this is an example of a main"
  5. 1040 print"program."
  6. 1050 print:print"press any key to load in"
  7. 1060 print"the overlay."
  8. 1070 geta$ : if a$="" then 1070
  9. 1080 p$="sub1" : goto 10 : rem load overlay.
  10. 2000 print:print"and here we are back in the"
  11. 2010 print"main program."
  12. 2020 end
  13.