05-02-2013, 11:18 AM
(05-01-2013, 11:21 PM)pelvicthrustman Wrote: [ -> ]0c0521ab means JAL $001486ac (JAL or "Jump And Link" instructions call functions in the MIPS (PS2 EE) architecture)
Note that the first address in the PAL PNACH is also 001486ac
This is because JAL instructions store the function address divided by four (right shift two technically)
If you open calculator in Windows 7/8 and go to View->Programmer, click Hex, input 0521ab (ignore the first two hex digits - they mean 'JAL') and multiply by 4 you will get 1486AC.
So...to port those three lines take the address of the first ported code, put it in Calculator in Hex, divide by four and prepend the digits '0C' as well as any necessary zeros to make it an 8 character (32-bit) number.
ALL THAT....will get you the answer....but as a shortcut you could probably note that 521ab = 521ac - 1.....which means it's probably 521c0 - 1 = 521bf
That should do it, for future reference anyone doing widescreen hacks can refer to this - http://www.mrc.uidaho.edu/mrc/people/jff...IPSir.html
If your curious about why the hack is written this way - many functions have a NOP (00000000) right before the first address of a function - when Nemesis rewrote this function he needed an extra instruction so he moved the function's start up by one word (four bytes) by changing all of the instructions which call that function.
Thanks, I got it!
I would never have figured this out by myself since I'm not a programmer.
Request done.
(05-02-2013, 05:54 AM)jadentheman Wrote: [ -> ]Sorry KLM, but I prefer the pan and scan like the remaster. Do you guys have the widescreen patches for that? Where it's pan and scan for cutscenes and real 16x9 for gameplay? If not then I will attempt to do it myself
Only for KH2. Just replace the "e0" in the .pnach file with "f9".
However, imo, it's zoomed in too close (gives me a headache sometimes), so that's why I think "e0" is a nice balance.