JamesNES
Well-known member
I made this macro to switch from one bank to another and come back, so if you're in say 1A and want to call your playerHurt subroutine which is in 1C, you can do:
from 1A and it'll work just fine.
Just include doSuperSwitch.asm in your LoadAllSubroutines.asm and put the SuperSwitch.asm file in your macros.
I've used it a lot so far with no problems.
Edit: just to clarify, it has to go to a subroutine, ie with an RTS at the end.
Code:
SuperSwitch #$1C, #<playerHurt, #>playerHurt
from 1A and it'll work just fine.
Just include doSuperSwitch.asm in your LoadAllSubroutines.asm and put the SuperSwitch.asm file in your macros.
I've used it a lot so far with no problems.
Edit: just to clarify, it has to go to a subroutine, ie with an RTS at the end.
Attachments
Last edited: