miller@uiucdcs.UUCP (miller ) (02/22/84)
#N:uiucdcs:36100049:000:278 uiucdcs!miller Feb 22 00:23:00 1984 OK, here's one for all of you c64 FROGGER fans out there: Ever notice how LOAD"FROGGER",8,1 not only loads the program, but starts it executing too? That's a neat trick and I'd like to know how they force execu- tion. Anyone out there know? A. Ray Miller Univ Illinois
mcewan@uiucdcs.UUCP (mcewan ) (02/23/84)
#R:uiucdcs:36100049:uiucdcs:36100051:000:212 uiucdcs!mcewan Feb 22 13:34:00 1984 Many diskbased programs do this. I understand it works by making the load address on the stack - thus when the load is completed, the return jumps to the program just loaded. Scott McEwan uiucdcs!mcewan
ejk47@ihuxn.UUCP (Ed Kufeldt, ihuxn ejk47) (02/23/84)
Many games use a BASIC program to load the ASM code. The SYS command is stuck on the end to jmp to the ASM code that was loaded. If the game is pure ASM then I suspect the last line is a CALL to the start of the game. Ed (VIC-20) Kufeldt :~}
pjm@spuxll.UUCP (PJ Maioriello) (02/23/84)
Another way to get a program to load and run on your c64 is to load on top of the start of basic vector. Then instead of starting up basic after a load it starts up whats at the the address you supplied. Sure is nice when they put all kinds of neat stuff in ram. Paul Maioriello spuxll!pjm
blk@sytek.UUCP (Brian L. Kahn) (02/25/84)
I'm not sure how frogger starts itself, but a trick I have used is to load a SYS command directly into the 10 char keyboard buffer. Another technique apparently used on some other load and run's is to load a longer basic statement into screen memory and just stick a return into to keyboard buffer. Remember, loading "*",8,1 loads stuff wherever the disk says to. No argument. B>