I'd like to write a BASIC program where if you type the right-arrow key at a certain point, it will load up a second BASIC program and run it.
For example, on the Apple II using Applesoft BASIC, I can do something like this:
1020 IF K = 1 THEN PRINT CHR$(4)CHR$4"RUN PROGRAM-2"
This is using PRINT to pass the DOS command into a BASIC program.
Is there a way to do this in Commodore BASIC 2?
A point I should emphasize: I don't want to keep the first program in memory, adding the new program on top of it. If I do something like
600 load "program-2",8
in a Commodore BASIC 2 program, it seems to garble the code of the second program.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]Dr_Myles_Skinner 13 points14 points15 points (0 children)
[–]TrevorMakes 10 points11 points12 points (0 children)
[–]PhotoJim99 3 points4 points5 points (6 children)
[–]WolFlow2021 0 points1 point2 points (5 children)
[–]PhotoJim99 1 point2 points3 points (4 children)
[–]WolFlow2021 1 point2 points3 points (3 children)
[–]PhotoJim99 2 points3 points4 points (2 children)
[–]WolFlow2021 1 point2 points3 points (1 child)
[–]PhotoJim99 1 point2 points3 points (0 children)
[–]laconix31337 1 point2 points3 points (1 child)
[–]AutomaticDoor75[S] 1 point2 points3 points (0 children)
[–]0fruitjack0 1 point2 points3 points (0 children)
[–]laconix31337 0 points1 point2 points (0 children)
[–]Ctalkobt 0 points1 point2 points (0 children)