Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interrupt Mode 2
#5
Ironically, once I'd worked out how to make the compiler do an interrupt mode 2 handler, getting your demo to run was scarily easy.

The IM2 code gets called once per interrupt, and hops over to do one run around what used to be the main loop.

So the main loop was renamed with a label instead of "DO" and has a return at the end of it. It's called with a gosub once per interrupt.

That's the whole trick.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)