Difference between revisions of "Store PA and PA + Y / 2"
Jump to navigation
Jump to search
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | 00185d00: 3c038019 lui r3,0x8019 | + | No Parameters - Returns Nothing |
− | 00185d04: 8c632d94 lw r3,0x2d94(r3) | + | |
− | 00185d08: 00000000 nop | + | Set Current Ability XA = Attacker's PA |
− | 00185d0c: 90620036 lbu r2,0x0036(r3) | + | Set Current Ability YA = (Attacker's PA + used Ability Y)/2 |
− | 00185d10: 3c018019 lui r1,0x8019 | + | -------------------------------------------------------------------------------------------- |
− | 00185d14: a42238ce sh r2,0x38ce(r1) | + | 00185d00: 3c038019 lui r3,0x8019 | |
− | 00185d18: 90620036 lbu r2,0x0036(r3) | + | 00185d04: 8c632d94 lw r3,0x2d94(r3) |{{f/adr|<nowiki>r3 = Attacker data pointer</nowiki>}} |
− | 00185d1c: 3c038019 lui r3,0x8019 | + | 00185d08: 00000000 nop | |
− | 00185d20: 906338fa lbu r3,0x38fa(r3) | + | 00185d0c: 90620036 lbu r2,0x0036(r3) |{{f/load|<nowiki>r2 = Attacker's PA</nowiki>}} |
− | 00185d24: 00000000 nop | + | 00185d10: 3c018019 lui r1,0x8019 | |
− | 00185d28: 00431021 addu r2,r2,r3 | + | 00185d14: a42238ce sh r2,0x38ce(r1) |{{f/store|<nowiki>Set Current Ability XA = Attacker's PA</nowiki>}} |
− | 00185d2c: 00021043 sra r2,r2,0x01 | + | 00185d18: 90620036 lbu r2,0x0036(r3) |{{f/load|<nowiki>r2 = Attacker's PA</nowiki>}} |
− | 00185d30: 3c018019 lui r1,0x8019 | + | 00185d1c: 3c038019 lui r3,0x8019 | |
− | 00185d34: a42238d0 sh r2,0x38d0(r1) | + | 00185d20: 906338fa lbu r3,0x38fa(r3) |{{f/load|<nowiki>r3 = Current Ability used Ability Y</nowiki>}} |
− | 00185d38: 03e00008 jr r31 | + | 00185d24: 00000000 nop | |
− | 00185d3c: 00000000 nop | + | 00185d28: 00431021 addu r2,r2,r3 |{{f/std|PA + Y}} |
+ | 00185d2c: 00021043 sra r2,r2,0x01 |{{f/std|(PA + Y) / 2}} | ||
+ | 00185d30: 3c018019 lui r1,0x8019 | | ||
+ | 00185d34: a42238d0 sh r2,0x38d0(r1) |{{f/store|Store PA + Y / 2 as current Ability YA}} | ||
+ | 00185d38: 03e00008 jr r31 | | ||
+ | 00185d3c: 00000000 nop | | ||
− | + | === Return Locations === | |
− | == Return Locations == | + | '''Battle.bin''' |
− | + | 00189cf0: [[31 Dmg_((PA+Y)/2*PA)]] | |
− | + | 00189d94: [[32 Dmg_(Rdm(1…X)*(PA*3+Y))]] | |
− | |||
− |
Latest revision as of 12:07, 8 September 2022
No Parameters - Returns Nothing Set Current Ability XA = Attacker's PA Set Current Ability YA = (Attacker's PA + used Ability Y)/2 -------------------------------------------------------------------------------------------- 00185d00: 3c038019 lui r3,0x8019 | 00185d04: 8c632d94 lw r3,0x2d94(r3) |r3 = Attacker data pointer 00185d08: 00000000 nop | 00185d0c: 90620036 lbu r2,0x0036(r3) |r2 = Attacker's PA 00185d10: 3c018019 lui r1,0x8019 | 00185d14: a42238ce sh r2,0x38ce(r1) |Set Current Ability XA = Attacker's PA 00185d18: 90620036 lbu r2,0x0036(r3) |r2 = Attacker's PA 00185d1c: 3c038019 lui r3,0x8019 | 00185d20: 906338fa lbu r3,0x38fa(r3) |r3 = Current Ability used Ability Y 00185d24: 00000000 nop | 00185d28: 00431021 addu r2,r2,r3 |PA + Y 00185d2c: 00021043 sra r2,r2,0x01 |(PA + Y) / 2 00185d30: 3c018019 lui r1,0x8019 | 00185d34: a42238d0 sh r2,0x38d0(r1) |Store PA + Y / 2 as current Ability YA 00185d38: 03e00008 jr r31 | 00185d3c: 00000000 nop |
Return Locations
Battle.bin 00189cf0: 31 Dmg_((PA+Y)/2*PA) 00189d94: 32 Dmg_(Rdm(1…X)*(PA*3+Y))