08-14-2012, 05:08 PM
Okay, I think I can help ya now. First off, this may help fill in a few spaces on your notepad.
Machine Hex Opcodes
Now, I haven't had much luck getting all of these to work 100% of the time, but you can look up what some mean like:
RTS: Return to script (as in, now that your done here, go back to where you came from)
BNE: Branch if not equal
BRA: Branch always
JMP: Jump to (4C in hex seems to be popular)
This should also help make some sense from the phrase "block", generally ends with RTS (which is 60 in hex) and begins with what ever the code starts with.
(.... read that stuff over and if you have any questions, ask... maybe I can answer, maybe not. I think I've covered the main points in question to this topic though)
Okay, with all that in mind, when he says "Jump to that block" he means literally "JUMP" (4C) to the offset you wrote that block of code in. So if you wrote it in at offset C2/66FO that's where you need it to go, instead of BRA (branch) to 5432 (80 ED does this by saying 80=branch always, and ED tells it how many bytes to skip before it gets where it wants to go, ED equals... 237... okay at some point that value tells it to go in the opposite direction (I'm not really qualified to give lessons on hex, at least good lessons anyway) Regardless what you want to do is get that chunk of code to go to your newly added code by dropping in a 4C F0 66 (JMP $66F0 , yes, address have to be typed in backwards, that's just how it works)
Next problems, how do you make 4C F0 66 fit in the hole where 80 ED came from without jacking everything around and breaking something? Well... that part gets left up to smart people. Me? I did this:
Now, I intended to add the C2/5441: 89 02 BIT #$02 that I had cut out to make the jump back into the code in free space, but forgot... worked when I tested it though so... your guess is as good as mine.
Welp, hope I helped you more than confused you. Let me know if I can clarify any of this gibberish I've typed.
Note: Something I haven't tested, if this line of code actually works completly, will the Rage menu still show up in the skills screen if he doesn't actually have it as a command... if not, the next order of buisness would be to try and make Leap the relevant command to make it non-gray in the skills menu.
Machine Hex Opcodes
Now, I haven't had much luck getting all of these to work 100% of the time, but you can look up what some mean like:
RTS: Return to script (as in, now that your done here, go back to where you came from)
BNE: Branch if not equal
BRA: Branch always
JMP: Jump to (4C in hex seems to be popular)
This should also help make some sense from the phrase "block", generally ends with RTS (which is 60 in hex) and begins with what ever the code starts with.
(.... read that stuff over and if you have any questions, ask... maybe I can answer, maybe not. I think I've covered the main points in question to this topic though)
Okay, with all that in mind, when he says "Jump to that block" he means literally "JUMP" (4C) to the offset you wrote that block of code in. So if you wrote it in at offset C2/66FO that's where you need it to go, instead of BRA (branch) to 5432 (80 ED does this by saying 80=branch always, and ED tells it how many bytes to skip before it gets where it wants to go, ED equals... 237... okay at some point that value tells it to go in the opposite direction (I'm not really qualified to give lessons on hex, at least good lessons anyway) Regardless what you want to do is get that chunk of code to go to your newly added code by dropping in a 4C F0 66 (JMP $66F0 , yes, address have to be typed in backwards, that's just how it works)
Next problems, how do you make 4C F0 66 fit in the hole where 80 ED came from without jacking everything around and breaking something? Well... that part gets left up to smart people. Me? I did this:
Code:
C2/543E: AD E4 11 (no clue what this does, so I left it alone)
C2/5441: 4C 7F 64 (My free space started at C2/647F so...)
C2/5444: FF (Just to fill in the extra space)
Down at the free space:
C2/647F: D0 04
C2/6481: A9 10 (Load Rage command)
C2/6483: 83 03
C2/6485: 60 (RTS)
Now, I intended to add the C2/5441: 89 02 BIT #$02 that I had cut out to make the jump back into the code in free space, but forgot... worked when I tested it though so... your guess is as good as mine.
Welp, hope I helped you more than confused you. Let me know if I can clarify any of this gibberish I've typed.
Note: Something I haven't tested, if this line of code actually works completly, will the Rage menu still show up in the skills screen if he doesn't actually have it as a command... if not, the next order of buisness would be to try and make Leap the relevant command to make it non-gray in the skills menu.