Insert your very own custom ASM code that will only run for a given sublevel!
Currently supports the following hijack points:
"main": runs every frame, gamemode 0F
"init": runs only during sublevel initialization, gamemodes 0C and 0D
This patch is only compatible with asar.
1) Locate the index of the level you want to add code to in level_code.asm and/or level_init_code.asm and put your code there. Save.
2) Patch your game with asar like normal; syntax is "asar.exe level.asm rom.sfc" (smc also works)
-Do not modify level.asm at all. It'll break your computer, trust me.
-Sample code has been provided for sublevel 0, both level0: and levelinit0: have sample code. Feel free to erase or use as a base.
The default processor state is both A & X/Y in 16-bit modes. The patch will not break if you
neglect to reset the processor before you return, but you should anyway.
Questions or bugs? Fire off a PM to Raidenthequick on SMWCentral and let him know.