Page 1 of 1

converting rom address

PostPosted: July 30th, 2010, 6:19 am
by Cyclone
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.

Re: converting rom address

PostPosted: July 30th, 2010, 7:46 am
by Mattrizzle
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.

Re: converting rom address

PostPosted: July 31st, 2010, 11:44 am
by Cyclone
Thanks Mattrizzle that solved things :)