I'm working on an cross-platform overworld-editor for Zelda 2. Currently I am able to edit the map and locations of caves, towns etc.
But when it comes to editing the locations of the palaces, I'm stuck on the part with the pointers which put a mountain-tile in place of the palace, when the palace has been cleared.
I found lots of great information on http://datacrystal.romhacking.net/wiki/Zelda_II:_The_Adventure_of_Link:ROM_map
479F - Palace 1 (value 0x18)
47A1 - Palace 2 (value 0x76)
47A3 - Palace 3 (value 0xEA)
For example: The table refers to adress 0x479F as the offset for Palace 1. I can successfully edit this and move the palace a little bit, so that the offset matches the new location.
But when it comes to the second and third palace, the offset isn't enough. I've tried calculating with the surrounding values, but to no avail..
From my calculations, I would need
Palace 2 0x174
Palace 3 0x2e6
Which is bigger than one byte can contain..
Has anybody worked with this, any ideas?
I've tried looking at http://www.bwass.org/romhack/zelda2/zelda2bank1.txt
but I'm unable to interpret the code..