[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multithreading OS for the C64
In article <4rd6m0$dp3@tuegate.tue.nl>,
Martijn van Buul <martijnb@stack.urc.tue.nl> wrote:
>sokos mark (msokos1@umbc.edu) wrote:
>| I'm guessing he uses the timer interrupt. Am I close?
>Well, I guess he is ;) I'm currently making a task-swapper myself (just
>for the fun of it. I've got no intentions or whatever blahblah), and I'm
>using the NMI for it... Those CIA's might come in hand, every now and then..
You can check out my task swapper (or better, "context switcher", as
"swapping" implies something different) for the C128 at:
http://ccnga.uwaterloo.ca/~csbruce/bos2.txt
It uses IRQs, which I think are much better suited than NMIs, since you can
simple switch them off during criticial sections, and you don't really need
the responsiveness that NMIs give anyway.
Keep on Hackin'!
-Craig Bruce
csbruce@ccnga.uwaterloo.ca
"Facts do not cease to exist because they are ignored."
-- Aldous Huxley
C=256,64K-VDC,REU,RL16,HD200,FD4000,SL,USR28.8,C=128,1581,1571,C=64C,1541,VIC20