converting rom address

Share and discuss all facets of DKC ROM hacking...

converting rom address

Postby Cyclone » July 30th, 2010, 6:19 am

Hi,

I got a ROM address of B882B8xx xx
where xx xx bytes are the values for
the defualt # of lives.
I wanted to make a program that edits
the defualt life value.

The problem is I don't see this address in
the Translhextion hex editor. How do I
convert the address so I can use it with
my program? pc address?

Thanks.
Expedition Leader
Bananas received 559
Posts: 1257
Joined: 2008

Re: converting rom address

Postby Mattrizzle » July 30th, 2010, 7:46 am

For games which use a HiROM mapper(this includes all three DKC games):
  • If the SNES address is in the range 800000-BFFFFF, subtract $800000 from it to get the PC address, or
  • If it falls between C00000 and FFFFFF, subtract $C00000.
However, you also have to keep in mind that some ROMs have a header, so $200 has to be added to the PC address.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: converting rom address

Postby Cyclone » July 31st, 2010, 11:44 am

Thanks Mattrizzle that solved things :)
Expedition Leader
Bananas received 559
Posts: 1257
Joined: 2008


Return to ROM Hacking

Who is online

Users browsing this forum: Google [Bot] and 10 guests