Difference between revisions of "Charge Calculation"
Jump to navigation
Jump to search
(Created page with " Charge Calculation 00185f80: 3c028019 lui r2,0x8019 00185f84: 244238ce addiu r2,r2,0x38ce 00185f88: 3c038019 lui r3,0x8019 00185f8c: 906338e4 lbu r3,0x38e4(r3) Load Char...") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | No Parameters - Return Nothing | |
− | 00185f80: 3c028019 lui r2,0x8019 | + | |
− | 00185f84: 244238ce addiu r2,r2,0x38ce | + | Load Ability XA, Add charge Power, Store New Ability XA |
− | 00185f88: 3c038019 lui r3,0x8019 | + | --------------------------------------------------------------------------------------------- |
− | 00185f8c: 906338e4 lbu r3,0x38e4(r3) | + | 00185f80: 3c028019 lui r2,0x8019 | |
− | 00185f90: 94440000 lhu r4,0x0000(r2) | + | 00185f84: 244238ce addiu r2,r2,0x38ce |{{f/adr|<nowiki>r2 = Current Ability XA pointer ( 0x801938ce )</nowiki>}} {{f/std| 801938ce }} |
− | 00185f94: 00000000 nop | + | 00185f88: 3c038019 lui r3,0x8019 | |
− | 00185f98: 00641821 addu r3,r3,r4 | + | 00185f8c: 906338e4 lbu r3,0x38e4(r3) |{{f/load|<nowiki>r3 = Current Ability Charge Power ( 0x801938e4 )</nowiki>}} {{f/std| 801938e4 }} |
− | 00185f9c: 03e00008 jr r31 | + | 00185f90: 94440000 lhu r4,0x0000(r2) |{{f/load|<nowiki>r4 = Ability XA</nowiki>}} |
− | 00185fa0: a4430000 sh r3,0x0000(r2) | + | 00185f94: 00000000 nop | |
+ | 00185f98: 00641821 addu r3,r3,r4 |{{f/std|<nowiki>r3 = Ability XA + Charge Power</nowiki>}} | ||
+ | 00185f9c: 03e00008 jr r31 | | ||
+ | 00185fa0: a4430000 sh r3,0x0000(r2) |{{f/store|<nowiki>Store New XA = XA + Charge's Power</nowiki>}} | ||
+ | === Return Locations === | ||
+ | '''Battle.bin''' | ||
+ | 00188650: [[Weapon Damage Calculation]] | ||
+ | 00188c0c: [[03 Dmg_(WP^2)]] | ||
+ | 00188c5c: [[04 Magic Gun]] | ||
+ | 00188cc4: [[05 Dmg_(Weapon)]] | ||
+ | 00188d1c: [[06 AbsHP_(Weapon)]] | ||
+ | 00188d5c: [[07 Heal_(Weapon)]] |
Latest revision as of 14:35, 26 March 2022
No Parameters - Return Nothing Load Ability XA, Add charge Power, Store New Ability XA --------------------------------------------------------------------------------------------- 00185f80: 3c028019 lui r2,0x8019 | 00185f84: 244238ce addiu r2,r2,0x38ce |r2 = Current Ability XA pointer ( 0x801938ce ) 801938ce 00185f88: 3c038019 lui r3,0x8019 | 00185f8c: 906338e4 lbu r3,0x38e4(r3) |r3 = Current Ability Charge Power ( 0x801938e4 ) 801938e4 00185f90: 94440000 lhu r4,0x0000(r2) |r4 = Ability XA 00185f94: 00000000 nop | 00185f98: 00641821 addu r3,r3,r4 |r3 = Ability XA + Charge Power 00185f9c: 03e00008 jr r31 | 00185fa0: a4430000 sh r3,0x0000(r2) |Store New XA = XA + Charge's Power
Return Locations
Battle.bin 00188650: Weapon Damage Calculation 00188c0c: 03 Dmg_(WP^2) 00188c5c: 04 Magic Gun 00188cc4: 05 Dmg_(Weapon) 00188d1c: 06 AbsHP_(Weapon) 00188d5c: 07 Heal_(Weapon)