Right now my game works like this:
Code: Select all
EndlessLoop: JMP EndlessLoop NMI: JSR updategraphics JSR ReadControllers JSR UpdateGame JSR PlaysoundandMusic RTI
As of late I can think of one, I have 500 bytes of rom I want to copy over into ram.
This is non timing sensitive so instead of copying it over in the nmi risking the nmi to interrupt the previous nmi interrupt (Is there a word for this?)
I would use a pointer in ram to a function in the endless loop that would copy stuff until it's done.
If there's nothing to copy the pointer would simply point to EndlessLoop again.
Of course this would require some more variables for the copy process but this isn't that crazy of an idea right?