Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
BASIC multitask   [2011]

BASIC multitask Released by :
S.E.S.

Release Date :
27 August 2011

Type :
C64 Basic Demo

AKA :
Multitasking for two BASIC programs

User rating:awaiting 8 votes (8 left)

Credits :
Code .... S.E.S. of Crest

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
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries (1)
· User Comments
· Production Notes
Fun Stuff
· Goofs
· Hidden Parts
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.082 sec.