In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: _djm, Okay now I understand. For my video modules the video generation is done completely by interrupts. So the "main" code doesn't have to worry about finishing in a certain amount of time. Andre' does something similar to what you need with the "XGameStation ME". The video code IS the main code and it calls a subroutine that does the "action", and when the subroutine returns, it waits for the next video frame time. If you goto www.xgamestation.com and download the video engine you should be able to see how he does it. Again, I much prefer to have the game code be the "main" and have the video generated completely by interrupts. But that's just me. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=112331#m112406 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)