Difference between revisions of "00174370-001743c4"
Jump to navigation
Jump to search
m |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
This page has a jump that links to the same place as [[Weather Elemental effects]]. As of yet I have no idea what it does... a check for the kind of weather Pallette? - Talcall | This page has a jump that links to the same place as [[Weather Elemental effects]]. As of yet I have no idea what it does... a check for the kind of weather Pallette? - Talcall | ||
+ | |||
0x00174370: 27bdffe8 addiu r29,r29,-0x0018 | 0x00174370: 27bdffe8 addiu r29,r29,-0x0018 | ||
0x00174374: afbd0010 sw r31, 0x0010(r29) | 0x00174374: afbd0010 sw r31, 0x0010(r29) | ||
− | 0x00174378: 0c063998 jal 0x0018e660 | + | 0x00174378: 0c063998 jal 0x0018e660 [[0018e660_-_0018e6b4]] Returns weather value (+0x03 if snowy), 0x00 if ignored. |
0x0017437c: 00000000 nop | 0x0017437c: 00000000 nop | ||
0x00174380: 00401821 addu r3, r2, r0 | 0x00174380: 00401821 addu r3, r2, r0 | ||
0x00174384: 28620003 slti r2, r3, 0x0003 | 0x00174384: 28620003 slti r2, r3, 0x0003 | ||
− | 0x00174388: 1440000b bne r2, r0, 0x001743b8 | + | 0x00174388: 1440000b bne r2, r0, 0x001743b8 #END if weather is clear or raining, return r2 = 1 |
0x0017438c: 34020001 ori r2, r0, 0x0001 | 0x0017438c: 34020001 ori r2, r0, 0x0001 | ||
0x00174390: 34020005 ori r2, r0, 0x0005 | 0x00174390: 34020005 ori r2, r0, 0x0005 | ||
− | 0x00174394: 14620003 bne r3, r2, 0x001743a4 | + | 0x00174394: 14620003 bne r3, r2, 0x001743a4 |
0x00174398: 34020003 ori r2, r0, 0x0003 | 0x00174398: 34020003 ori r2, r0, 0x0003 | ||
− | 0x0017439c: 0805d0ee j 0x001743b8 | + | 0x0017439c: 0805d0ee j 0x001743b8 #END if weather is light snow, return r2 = 1 |
0x001743a0: 34020001 ori r2, r0, 0x0001 | 0x001743a0: 34020001 ori r2, r0, 0x0001 | ||
− | 0x001743a4: 10620003 beq r3, r2, 0x001743b4 | + | 0x001743a4: 10620003 beq r3, r2, 0x001743b4 #END if weather is thunderstorm, return r2 = 2 |
0x001743a8: 34020006 ori r2, r0, 0x0006 | 0x001743a8: 34020006 ori r2, r0, 0x0006 | ||
− | 0x001743ac: 14620002 bne r3, r2, 0x001743b8 | + | 0x001743ac: 14620002 bne r3, r2, 0x001743b8 #END if weather is severe thunderstorm or severe blizzard, return r2 = 3 |
− | 0x001743b0: 34020003 ori r2, r0, 0x0003 | + | 0x001743b0: 34020003 ori r2, r0, 0x0003 |
− | 0x001743b4: 34020002 ori r2, r0, 0x0002 | + | 0x001743b4: 34020002 ori r2, r0, 0x0002 #if weather is heavy snow, return r2 = 2 |
0x001743b8: 8fbf0010 lw r31, 0x0010(r29) | 0x001743b8: 8fbf0010 lw r31, 0x0010(r29) | ||
0x001743bc: 27bd0018 addiu r29, r29, 0x0018 | 0x001743bc: 27bd0018 addiu r29, r29, 0x0018 | ||
0x001743c0: 03e00008 jr r31 | 0x001743c0: 03e00008 jr r31 | ||
0x001743c4: 00000000 nop | 0x001743c4: 00000000 nop | ||
+ | === Return location === | ||
+ | '''Battle.bin''' | ||
+ | 00174628: [[Store_movement_stuff_into_scratch_pad]] | ||
+ | 0017833c: [[Calculate_Pathing]] | ||
+ | |||
+ | === Return Values === | ||
+ | r2 = 0x01 if weather is clear, raining, or snowing | ||
+ | r2 = 0x02 if weather is thunderstorm or snowstorm | ||
+ | r2 = 0x03 if weather is severe thunderstorm or severe snowstorm |
Latest revision as of 12:01, 27 July 2022
This page has a jump that links to the same place as Weather Elemental effects. As of yet I have no idea what it does... a check for the kind of weather Pallette? - Talcall
0x00174370: 27bdffe8 addiu r29,r29,-0x0018 0x00174374: afbd0010 sw r31, 0x0010(r29) 0x00174378: 0c063998 jal 0x0018e660 0018e660_-_0018e6b4 Returns weather value (+0x03 if snowy), 0x00 if ignored. 0x0017437c: 00000000 nop 0x00174380: 00401821 addu r3, r2, r0 0x00174384: 28620003 slti r2, r3, 0x0003 0x00174388: 1440000b bne r2, r0, 0x001743b8 #END if weather is clear or raining, return r2 = 1 0x0017438c: 34020001 ori r2, r0, 0x0001 0x00174390: 34020005 ori r2, r0, 0x0005 0x00174394: 14620003 bne r3, r2, 0x001743a4 0x00174398: 34020003 ori r2, r0, 0x0003 0x0017439c: 0805d0ee j 0x001743b8 #END if weather is light snow, return r2 = 1 0x001743a0: 34020001 ori r2, r0, 0x0001 0x001743a4: 10620003 beq r3, r2, 0x001743b4 #END if weather is thunderstorm, return r2 = 2 0x001743a8: 34020006 ori r2, r0, 0x0006 0x001743ac: 14620002 bne r3, r2, 0x001743b8 #END if weather is severe thunderstorm or severe blizzard, return r2 = 3 0x001743b0: 34020003 ori r2, r0, 0x0003 0x001743b4: 34020002 ori r2, r0, 0x0002 #if weather is heavy snow, return r2 = 2 0x001743b8: 8fbf0010 lw r31, 0x0010(r29) 0x001743bc: 27bd0018 addiu r29, r29, 0x0018 0x001743c0: 03e00008 jr r31 0x001743c4: 00000000 nop
Return location
Battle.bin 00174628: Store_movement_stuff_into_scratch_pad 0017833c: Calculate_Pathing
Return Values
r2 = 0x01 if weather is clear, raining, or snowing r2 = 0x02 if weather is thunderstorm or snowstorm r2 = 0x03 if weather is severe thunderstorm or severe snowstorm