Hey everyone,
So today I began working on a personal project but I ran into a couple of issues. I solved some of them but once again I'm stuck.
I'm trying to understand a specific function call and then patch how it is called in an already compiled executable.Most of my assembly knowledge is specific to x86, in Windows. Sh4 on the dreamcast is close but I'm still having issues.
Looking for people to bounce thoughts off of.
Boiled down my issue is this:
function func2 is getting called from within another function and the parameters are sent from a different function
Start calls func1(a,b,c,d) which then calls func2(a,b,0,1)
I can see in the disassembly that it goes like this:
mov 1, r7
mov 0, r6
mov.l , r5 (I don't understand mov.l, can I change it just mov?)
mov.l [a], r4
jsr @func2 (actually jsr @r3)
When I patch the mov for r5 it doesn't work correctly (but I am doing it by hand in a compiled binary, maybe I have the bytes wrong)
HELP?!
Sidenote: In have SDK r9, r10, and r11.b but I am trying to patch something built with Shinobi VER 1.62 (which should be r10) but my r10 SDK doesn't match, it has VER 1.64.
Would anyone who has an installed SDK be willing to check if their Shinobi.lib is 1.62 and what SDK it comes from? If kindly also post your shinobi.lib and the header file "km2enum.h"
So today I began working on a personal project but I ran into a couple of issues. I solved some of them but once again I'm stuck.
I'm trying to understand a specific function call and then patch how it is called in an already compiled executable.Most of my assembly knowledge is specific to x86, in Windows. Sh4 on the dreamcast is close but I'm still having issues.
Looking for people to bounce thoughts off of.
Boiled down my issue is this:
function func2 is getting called from within another function and the parameters are sent from a different function
Start calls func1(a,b,c,d) which then calls func2(a,b,0,1)
I can see in the disassembly that it goes like this:
mov 1, r7
mov 0, r6
mov.l , r5 (I don't understand mov.l, can I change it just mov?)
mov.l [a], r4
jsr @func2 (actually jsr @r3)
When I patch the mov for r5 it doesn't work correctly (but I am doing it by hand in a compiled binary, maybe I have the bytes wrong)
HELP?!
Sidenote: In have SDK r9, r10, and r11.b but I am trying to patch something built with Shinobi VER 1.62 (which should be r10) but my r10 SDK doesn't match, it has VER 1.64.
Would anyone who has an installed SDK be willing to check if their Shinobi.lib is 1.62 and what SDK it comes from? If kindly also post your shinobi.lib and the header file "km2enum.h"