don't click here

Preemptive context switching, aka multitasking

Discussion in 'Technical Discussion' started by Andlabs, Aug 8, 2009.

  1. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    1
    0
    Writing my own MD/Genesis sound driver :D
    Well I posted this on SpritesMind, but I'd thought I'd post this here too.

    I decided to make a simple preemptive context switcher on the Genesis, based on some code I already had for x86 and some guidelines I found a while ago.

    http://idisk.mac.com/pietro10-Public/mtask.zip

    It just flashes between a and b every second or two. Not really much to say :D

    Comments are welcome, source code is included. Read the main source code file for the thanks. =P