Please login or register.

Login with username, password and session length
Advanced search  

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!

Pages: [1]
Heisho [Posts: 70]
  • View Profile
  • share
  • [March 01, 2018, 10:53:01 PM]
Help fixing a formula I'm making
« on: March 01, 2018, 10:53:01 PM »
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.
Heisho [Posts: 70]
  • View Profile
  • share
  • [March 05, 2018, 10:03:33 PM]
Re: Help fixing a formula I'm making
« Reply #1 on: March 05, 2018, 10:03:33 PM »
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.
The Puppet ---Master---
Elric (Overseer) [Posts: 3903]
  • View Profile
  • Youtube Channel
  • http://steamcommunity.com/id/Bones42
  • share
  • [March 06, 2018, 03:33:58 AM]
Re: Help fixing a formula I'm making
« Reply #2 on: March 06, 2018, 03:33:58 AM »
Good job, keep it up

    • Modding version: PSX
  • <@Angel> Teach a man to fish and he'll open up a fishery to compete against yours.
    Journey of the Five Youtube ChannelThe Lion War Current Status
       
    Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
    Pages: [1]