Difference between revisions of "Load ability effect"
Jump to navigation
Jump to search
(Created page with " Load ability effect: called from 73f68 001a1810: 00000000 nop 001a1814: 2482fe6b addiu r2,r4,0xfe6b 001a1818: 2c420009 sltiu r2,r2,0x0009 001a181c: 1440000b bne r2,r0,0x...") |
|||
Line 1: | Line 1: | ||
− | + | Parameters : r4 = Used Ability ID | |
− | + | ||
− | + | Returns : r2 = 0x01 if Ability effect is 0xffff / Else 0x00 | |
− | 001a1814: 2482fe6b addiu r2,r4, | + | ------------------------------------------------------------------------------------------------------------------------------- |
− | 001a1818: 2c420009 sltiu r2,r2,0x0009 | + | 001a1814: 2482fe6b addiu r2,r4,-0x0195 |{{f/std|<nowiki>r2 = Ability ID - 0x195</nowiki>}} |
− | 001a181c: 1440000b bne r2,r0,0x001a184c | + | 001a1818: 2c420009 sltiu r2,r2,0x0009 |{{f/std|<nowiki>r2 = 0x01 If used ability is a Charge ability (or Jump 8 ?)</nowiki>}} |
− | 001a1820: 00001021 addu r2,r0,r0 | + | 001a181c: 1440000b bne r2,r0,0x001a184c {{f/Cond|If Used ability is not a charge ability}} /Else branch to END - r2 = 0x00 |
− | 001a1824: 34020092 ori r2,r0,0x0092 | + | 001a1820: 00001021 addu r2,r0,r0 |{{f/std|<nowiki>r2 = 0x00</nowiki>}} |
− | 001a1828: 14820003 bne r4,r2,0x001a1838 | + | 001a1824: 34020092 ori r2,r0,0x0092 |{{f/std|<nowiki>r2 = 0x92 (Tackle ID)</nowiki>}} |
− | 001a182c: 00041040 sll r2,r4,0x01 | + | 001a1828: 14820003 bne r4,r2,0x001a1838 {{f/Cond|If Used Ability is Tackle}} |
− | 001a1830: 08068613 j 0x001a184c | + | 001a182c: 00041040 sll r2,r4,0x01 |{{f/std|<nowiki>r2 = Ability ID * 2</nowiki>}} |
− | 001a1834: 00001021 addu r2,r0,r0 | + | 001a1830: 08068613 j 0x001a184c {{f/jump|<nowiki>jump to END (r2 = 0x00)</nowiki>}} |
− | 001a1838: 3c01801b lui r1,0x801b | + | 001a1834: 00001021 addu r2,r0,r0 |{{f/std|<nowiki>r2 = 0x00</nowiki>}} |
− | 001a183c: 00220821 addu r1,r1,r2 | + | 001a1838: 3c01801b lui r1,0x801b {{f/Cond|Else}} |
− | 001a1840: 842263f0 lh r2,0x63f0(r1) | + | 001a183c: 00220821 addu r1,r1,r2 |{{f/std|<nowiki>r1 = 0x801b0000 + Ability Offset</nowiki>}} |
− | 001a1844: 00000000 nop | + | 001a1840: 842263f0 lh r2,0x63f0(r1) |{{f/load|<nowiki>r2 = Ability Effect</nowiki>}} {{f/std|0x801b63f0}} |
− | 001a1848: 000217c2 srl r2,r2,0x1f | + | 001a1844: 00000000 nop | |
− | 001a184c: 03e00008 jr r31 | + | 001a1848: 000217c2 srl r2,r2,0x1f |{{f/std|<nowiki>r2 = 0x01 if Ability Effect is 0xffff, else 0x00</nowiki>}} |
− | 001a1850: 00000000 nop | + | 001a184c: 03e00008 jr r31 |
+ | 001a1850: 00000000 nop | ||
+ | === Return locations === | ||
+ | 00072c48: | ||
+ | 00073f70: [[Set_damage_display_type_based_on_ability]] | ||
+ | 0007751c: [[%3F_0x773f8]] [[000773f8_-_0007775c]] | ||
+ | 000775f0: [[%3F_0x773f8]] [[000773f8_-_0007775c]] |
Revision as of 20:54, 8 March 2022
Parameters : r4 = Used Ability ID Returns : r2 = 0x01 if Ability effect is 0xffff / Else 0x00 ------------------------------------------------------------------------------------------------------------------------------- 001a1814: 2482fe6b addiu r2,r4,-0x0195 |r2 = Ability ID - 0x195 001a1818: 2c420009 sltiu r2,r2,0x0009 |r2 = 0x01 If used ability is a Charge ability (or Jump 8 ?) 001a181c: 1440000b bne r2,r0,0x001a184c #If Used ability is not a charge ability /Else branch to END - r2 = 0x00 001a1820: 00001021 addu r2,r0,r0 |r2 = 0x00 001a1824: 34020092 ori r2,r0,0x0092 |r2 = 0x92 (Tackle ID) 001a1828: 14820003 bne r4,r2,0x001a1838 #If Used Ability is Tackle 001a182c: 00041040 sll r2,r4,0x01 |r2 = Ability ID * 2 001a1830: 08068613 j 0x001a184c >>jump to END (r2 = 0x00) 001a1834: 00001021 addu r2,r0,r0 |r2 = 0x00 001a1838: 3c01801b lui r1,0x801b #Else 001a183c: 00220821 addu r1,r1,r2 |r1 = 0x801b0000 + Ability Offset 001a1840: 842263f0 lh r2,0x63f0(r1) |r2 = Ability Effect 0x801b63f0 001a1844: 00000000 nop | 001a1848: 000217c2 srl r2,r2,0x1f |r2 = 0x01 if Ability Effect is 0xffff, else 0x00 001a184c: 03e00008 jr r31 001a1850: 00000000 nop
Return locations
00072c48: 00073f70: Set_damage_display_type_based_on_ability 0007751c: ?_0x773f8 000773f8_-_0007775c 000775f0: ?_0x773f8 000773f8_-_0007775c