• Welcome to Final Fantasy Hacktics. Please login or sign up.
 

Help fixing a formula I'm making

Started by Heisho, March 01, 2018, 06:53:01 pm

Heisho

Hello there.

I've been struggling in attempting to change the original formula 3B (Scream/Shout) to allow adding positive and negative values (as some ASM from Emmy) by changing their values on the Patcher and also trying to have the Proc ID, X, and Y values to change PA, MA and SP respectively.
So far I've hit a wall. This is the code that I have at the moment.

[0x00000000] lui r5,0x8019
[0x00000004] lbu r5,0x38f9(r5)
[0x00000008] lui r3,0x8019
[0x0000000c] lw r3,0x2d90(r3)
[0x00000010] andi r5,r5,0x0080
[0x00000014] sb r2,0x0014(r3)
[0x00000018] lui r3,0x8019
[0x0000001c] lbu r3,0x38fa(r3)
[0x00000020] lui r2,0x8019
[0x00000024] lw r2,0x2d90(r2)
[0x00000028] andi r3,r3,0x0080
[0x0000002c] sb r3,0x0015(r2)
[0x00000030] lui r4,0x8019
[0x00000034] lbu r4,0x38fb(r4)
[0x00000038] lui r2,0x8019
[0x0000003c] lw r2,0x2d90(r2)
[0x00000040] andi r4,r4,0x0080
[0x00000044] sb r4,0x0012(r2)
[0x00000048] lui r3,0x8019
[0x0000004c] lw r3,0x2d90(r3)
[0x00000050] ori r2,r0,0x0001
[0x00000054] jr r31
[0x00000058] sb r2,0x0025(r3)

Any help is welcome. BTW I'm still way green regarding ASM, so far I've managed to edit simple formulas but many terms and things are still a mystery for me. So If a dummy language can be used for me to understand will be appreciated.

Regards.
  • Modding version: PSX
Grrr, arwg, hiss, and some other zombie noises...
  • Discord username: Heisho

Heisho

Doesn't matter anymore I finally got it. With less space. :cool:
I put it on formula 4F but if you want to relocate it just change the offset.

This will be my first contribution, is little but is something.
  • Modding version: PSX
Grrr, arwg, hiss, and some other zombie noises...
  • Discord username: Heisho

3lric

  • Modding version: PSX