Conversation Between kleenexfeu and Germaniac
Showing Visitor Messages 31 to 37 of 37
-
I don't understand, I'm "replacing" this 8 bytes with the goto command
-
those byte are actually THUMB code compiled. 00 49 08 47 (if I remember well) say "take the following address, place it in the first register, and follow that register with the address being ZZ+1 YY XX 08 (the pointer to your routine +1)
-
wait, did you actually re-write this 8 bytes at the end of your routine?
-
I think I'm doing it wrong since I'm deleting 8 bytes to insert it
-
but we're replacing some hex to insert it, is it ok?
-
callasm makes actually the engine interprets data differently, it'll read as THUMB code instead of script/battlescript/animation script or whatever code. The routine we're altering is already THUMB so it's more a "goto", but yeah it's pretty much the same.
We're "hooking", that is to say making the code go somehere read our routine, and go back properly
-
About it..., I guess it's like callasm right? I'm asking what we're overwritting to insert it since we can't write it inbetween the codes