Language…
4 users online: anoMaly666,  Atari2.0, Nitrogen, Tsquare07 - Guests: 230 - Bots: 305
Users: 64,795 (2,375 active)
Latest user: mathew

trouble with inserting GHB's 8 directional cannons

Hi im trying to insert GHB's 8 directional cannon blocks the uberasm that comes with it doesn't have an init but when i tried adding one it crashes the game including the emulator im not sure if its because the code isn't Sa-1 compatiblity or its the init i added here is the uberasm code that came with the cannon blocks

i added the init myself im not sure whats happening


tahix edit: please put long code blocks in collapse tags, thanks
This is my non existent layout I plan on adding one soon.. or never

I have a discord server, feel free to join if you want
Replace the RTS with an RTL and remove the INIT: and put MAIN: above the Cannon: routine. It worked in my case.
Something to note: The UberASM code is made for the patch version and that puts each code into a single bank instead of splitting accross multiple banks (the latter is a feature of the tool). For this reason, each code for the tool must end with a RTL instead of RTS.
The amount of labels in UberASM Tool doesn't matter because if it were that, almost if not really all codes would end up crashing because they're also missing a load (only for levels) and nmi label in the code somewhere.

That being said, the code also isn't SA-1 compatible but that's mostly unrelated to crashing because SA-1 pack remaps almost all of SMW's WRAM which ends up being unused (do note that some portions are used but the code here is "safe") so unconverted SA-1 code generally end up doing nothing instead of crashing. The fix is pretty simple: Make sure that you add to every 4-digit address (i.e. the value is between $0100 and $1FFF including) $6000 (so e.g. $13D4 becomes $73D4). 2-digit addresses don't matter because SA-1 Pack converts these addresses internally unless they're four digits again (but these are rare).
Originally posted by MarioFanGamer
Something to note: The UberASM code is made for the patch version and that puts each code into a single bank instead of splitting accross multiple banks (the latter is a feature of the tool). For this reason, each code for the tool must end with a RTL instead of RTS.
The amount of labels in UberASM Tool doesn't matter because if it were that, almost if not really all codes would end up crashing because they're also missing a load (only for levels) and nmi label in the code somewhere.

That being said, the code also isn't SA-1 compatible but that's mostly unrelated to crashing because SA-1 pack remaps almost all of SMW's WRAM which ends up being unused (do note that some portions are used but the code here is "safe") so unconverted SA-1 code generally end up doing nothing instead of crashing. The fix is pretty simple: Make sure that you add to every 4-digit address (i.e. the value is between $0100 and $1FFF including) $6000 (so e.g. $13D4 becomes $73D4). 2-digit addresses don't matter because SA-1 Pack converts these addresses internally unless they're four digits again (but these are rare).


Alright the level no longer crashes but the barrels don't work they make a sound when i press the jump button but they dont work all it does is it gets mario stuck
This is my non existent layout I plan on adding one soon.. or never

I have a discord server, feel free to join if you want