| |
AKA :
Multitasking for two BASIC programs
User rating: | awaiting 8 votes (8 left) |
Credits :
Download :
Look for downloads on external sites:
Pokefinder.org
Summary Submitted by S.E.S. on 3 January 2013
Multitasking for BASIC 2.0 programs - runs two BASIC programs in parallel.
The D64 image contains three files: two BASIC programs "START" and "BASIC2", and one ASM routine "MULTITASK".
You run the BASIC program "START". The program loads the ASM routine named "MULTITASK" into memory starting at 49152 ($C000).
Then the BASIC program prints some more basic commands to the screen and puts two key presses (RETURN key) in the keyboard buffer.
Then it calls the ASM routine with SYS 49152. Now things get interesting!
From now on, two tasks run in parallel:
In task 1, the BASIC program "START" continues normally after "SYS 49152". It doesn't receive any key presses any more, so you cannot stop it using "RUN/STOP" key any more.
The program continuously updates the upper right screen corner with colorful random chars so you can see it is still running.
In task 2, the BASIC program "START" ends after "SYS 49152". Since we faked two return key presses in the keyboard buffer before, the two commands on screen are now run.
So the BASIC program "BASIC2" gets loaded and runs.
So we have two BASIC programs running in parallel! C64 BASIC Multitasking! Yay!
Released 27th August 2011
Initial release in German C64 forum:
http://www.forum64.de/wbb3/board25-coder-unter-sich/board308-pr..
|
|
|
|
| Search CSDb |
| Navigate | |
|
| Detailed Info | |
· Summaries (1)
· User Comments
· Production Notes
|
|
| Fun Stuff | |
· Goofs · Hidden Parts · Trivia
|
|
| Forum | |
|
| Support CSDb | |
|
| |
|