Converting to/from SNES addresses

Hey guys! Are you sick of getting SNES addresses when you just want to know what to change in hex? I mean, a Gnawty in DKC1's init script is at b5b413. How does THAT help me?
Actually, a lot. It's actually very easy to convert, and you can even convert in your head!
Consider this table.
When converting from SNES, we only have to worry about the first digit. So our address b5b413. We only look at b in the table and choose the same column in the first row (so 3). So b5b413 converts to 351413. The jungle theme tilemaps are at d90000 in dkc1. This converts to 190000!
And that's all there is to it! So if somebody gives you a SNES address, you can quickly convert!
Actually, a lot. It's actually very easy to convert, and you can even convert in your head!
Consider this table.
- Code: Select all
0 1 2 3
4 5 6 7
8 9 a b
c d e f
When converting from SNES, we only have to worry about the first digit. So our address b5b413. We only look at b in the table and choose the same column in the first row (so 3). So b5b413 converts to 351413. The jungle theme tilemaps are at d90000 in dkc1. This converts to 190000!
And that's all there is to it! So if somebody gives you a SNES address, you can quickly convert!