Banner
Views: 807,874,256
Time:
23 users online: aknightofwands, Blizzard Buffalo, Bully With A Hat, CCoolant, Darkbloom, ExONightZ, Gamma V, Green Jerry, Hardware128K, HD_DankBaron,  idol, JamesD28, KiloMinimo, Mrmariobros222, OEOTeam, Redwykelz, rvx, Sapphire, Sariel, SimFan96, SuperMarioDs64, Wariuzzo, yogui - Guests: 106 - Bots: 190 Users: 42,411 (1,991 active)
Latest: Inertiaddict
Tip: Fix any errors you see before releasing any demos; "I'll fix it later" isn't a good excuse.Not logged in.
trouble with inserting GHB's 8 directional cannons
Forum Index - SMW Hacking - SMW Hacking Help - trouble with inserting GHB's 8 directional cannons
Pages: « 1 »
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
Replace the RTS with an RTL and remove the INIT: and put MAIN: above the Cannon: routine. It worked in my case.

--------------------
Putting my YI hack on hold.
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).

--------------------
Okay, my layout looks ugly.
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
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - trouble with inserting GHB's 8 directional cannons

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy