Users browsing this thread: 1 Guest(s)
General Hex Question

#2
Posts: 2,551
Threads: 98
Thanks Received: 149
Thanks Given: 163
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
There is no way to add bytes in front of other bytes, so you will either need to delete and/or rearrange many bytes, so that you can add stuff in, but the better way for larger events is to make it jump to somewhere that has free space with the B2 subroutine command, and then once your done coding stuff, make it jump back to the code where it started.

There are some places in the C banks with free space and it is documented, but not enough at all really for major event hacking, so you would either have to erase some useless events to free up space, or if your ROM has been expanded you can use the F1 bank where there should be a ton of free space. To jump to the F1 bank you would put B2 XX XX 27 FE and then add what you want there in F1, then jump back to the original code where it continues. Just make sure you put that FE after the subroutine, or it will just continue on to the next code instead of jump, that or freeze.

ex: 3D 00 3D 0E 3D 0F 45 B2 10 50 27 FE [new code here @ F15010] B2 15 99 03 FE <----- jumps back to CC/9915 Think of it as a boomerang.

Remember the correct order when inputting the address, it should always be like this:
CC/9915 = 15 99 03

The CC should go last and turns into 03, the middle byte stays the same, and the last byte becomes the first one.

Key:
00 = CA
01 = CB
02 = CC
etc...
27 = F1


We are born, live, die and then do the same thing over again.
Quote  



Messages In This Thread
General Hex Question - by silvermaine - 02-23-2012, 04:43 PM
RE: General Hex Question - by Gi Nattak - 02-23-2012, 05:10 PM
RE: General Hex Question - by Angelo26 - 02-23-2012, 05:30 PM
RE: General Hex Question - by silvermaine - 02-23-2012, 05:12 PM
RE: General Hex Question - by Gi Nattak - 02-23-2012, 05:22 PM
RE: General Hex Question - by silvermaine - 02-23-2012, 05:25 PM
RE: General Hex Question - by Gi Nattak - 02-23-2012, 05:41 PM
RE: General Hex Question - by silvermaine - 02-23-2012, 08:38 PM
RE: General Hex Question - by madsiur - 02-23-2012, 08:41 PM
RE: General Hex Question - by silvermaine - 02-23-2012, 09:16 PM
RE: General Hex Question - by madsiur - 02-23-2012, 09:26 PM
RE: General Hex Question - by silvermaine - 02-23-2012, 09:29 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite