Difference between revisions of "Routine at 142508"
Jump to navigation
Jump to search
(Created page with " 00142508: 27bdffe0 addiu r29,r29,0xffe0 0014250c: afb00018 sw r16,0x0018(r29) 00142510: 00808021 addu r16,r4,r0 00142514: afbf001c sw r31,0x001c(r29) 00142518: 0c060324 j...") |
|||
Line 1: | Line 1: | ||
+ | |||
00142508: 27bdffe0 addiu r29,r29,0xffe0 | 00142508: 27bdffe0 addiu r29,r29,0xffe0 | ||
0014250c: afb00018 sw r16,0x0018(r29) | 0014250c: afb00018 sw r16,0x0018(r29) | ||
00142510: 00808021 addu r16,r4,r0 | 00142510: 00808021 addu r16,r4,r0 | ||
00142514: afbf001c sw r31,0x001c(r29) | 00142514: afbf001c sw r31,0x001c(r29) | ||
− | 00142518: 0c060324 jal 0x00180c90 | + | 00142518: 0c060324 jal 0x00180c90 0x183 flags checks |
0014251c: 27a50010 addiu r5,r29,0x0010 | 0014251c: 27a50010 addiu r5,r29,0x0010 | ||
− | 00142520: 8fa40010 lw r4,0x0010(r29) | + | 00142520: 8fa40010 lw r4,0x0010(r29) load gameover value? |
00142524: 00000000 nop | 00142524: 00000000 nop | ||
− | 00142528: 04810013 bgez r4,0x 00142578 | + | 00142528: 04810013 bgez r4,0x 00142578 branch if greater than zero |
0014252c: 2602ffff addiu r2,r16,0xffff | 0014252c: 2602ffff addiu r2,r16,0xffff | ||
00142530: 2c420049 sltiu r2,r2,0x0049 | 00142530: 2c420049 sltiu r2,r2,0x0049 | ||
− | 00142534: 10400019 beq r2,r0,0x 0014259c | + | 00142534: 10400019 beq r2,r0,0x 0014259c branch if ?? |
− | 00142538: 2402ffff addiu r2,r0,0xffff | + | 00142538: 2402ffff addiu r2,r0,0xffff r2 = 0xffff |
− | 0014253c: 0c0602cb jal 0x00180b2c | + | 0014253c: 0c0602cb jal 0x00180b2c Ramza causes gameover routine |
00142540: 02002021 addu r4,r16,r0 | 00142540: 02002021 addu r4,r16,r0 | ||
− | 00142544: 04400010 bltz r2,0x 00142588 | + | 00142544: 04400010 bltz r2,0x 00142588 branch if r2 < 0 (r2 = 0 if ramza is found without crystal or treasure status |
− | 00142548: afa20010 sw r2,0x0010(r29) | + | 00142548: afa20010 sw r2,0x0010(r29) store returned value |
− | 0014254c: 0c0602bf jal 0x00180afc | + | 0014254c: 0c0602bf jal 0x00180afc get unit data? |
00142550: 00402021 addu r4,r2,r0 | 00142550: 00402021 addu r4,r2,r0 | ||
00142554: 00401821 addu r3,r2,r0 | 00142554: 00401821 addu r3,r2,r0 | ||
− | 00142558: 90620161 lbu r2,0x0161(r3) | + | 00142558: 90620161 lbu r2,0x0161(r3) load ENTD ID |
0014255c: 00000000 nop | 0014255c: 00000000 nop | ||
− | 00142560: 2442ff88 addiu r2,r2,0xff88 | + | 00142560: 2442ff88 addiu r2,r2,0xff88 ENTD ID - 0x77 |
− | 00142564: 2c420005 sltiu r2,r2,0x0005 | + | 00142564: 2c420005 sltiu r2,r2,0x0005 |
− | 00142568: 10400007 beq r2,r0,0x 00142588 | + | 00142568: 10400007 beq r2,r0,0x 00142588 branch if ENTD ID - 0x77 is greater than 0x05 |
0014256c: 00601021 addu r2,r3,r0 | 0014256c: 00601021 addu r2,r3,r0 | ||
− | 00142570: 08050967 j 0x 0014259c | + | 00142570: 08050967 j 0x 0014259c jump to end |
00142574: 00000000 nop | 00142574: 00000000 nop | ||
− | 00142578: 0c023388 jal 0x0008ce20 | + | 00142578: 0c023388 jal 0x0008ce20 ??? |
0014257c: 00000000 nop | 0014257c: 00000000 nop | ||
− | 00142580: 04410003 bgez r2, | + | 00142580: 04410003 bgez r2,0x00142590 |
00142584: 00000000 nop | 00142584: 00000000 nop | ||
− | 00142588: 08050967 j | + | 00142588: 08050967 j 0x0014259c jump to end, r2 = 0xffff |
0014258c: 2402ffff addiu r2,r0,0xffff | 0014258c: 2402ffff addiu r2,r0,0xffff | ||
00142590: 8fa40010 lw r4,0x0010(r29) | 00142590: 8fa40010 lw r4,0x0010(r29) | ||
− | 00142594: 0c0602bf jal 0x00180afc | + | 00142594: 0c0602bf jal 0x00180afc get unit data? |
00142598: 00000000 nop | 00142598: 00000000 nop | ||
0014259c: 8fbf001c lw r31,0x001c(r29) | 0014259c: 8fbf001c lw r31,0x001c(r29) |
Latest revision as of 21:52, 30 July 2012
00142508: 27bdffe0 addiu r29,r29,0xffe0 0014250c: afb00018 sw r16,0x0018(r29) 00142510: 00808021 addu r16,r4,r0 00142514: afbf001c sw r31,0x001c(r29) 00142518: 0c060324 jal 0x00180c90 0x183 flags checks 0014251c: 27a50010 addiu r5,r29,0x0010 00142520: 8fa40010 lw r4,0x0010(r29) load gameover value? 00142524: 00000000 nop 00142528: 04810013 bgez r4,0x 00142578 branch if greater than zero 0014252c: 2602ffff addiu r2,r16,0xffff 00142530: 2c420049 sltiu r2,r2,0x0049 00142534: 10400019 beq r2,r0,0x 0014259c branch if ?? 00142538: 2402ffff addiu r2,r0,0xffff r2 = 0xffff 0014253c: 0c0602cb jal 0x00180b2c Ramza causes gameover routine 00142540: 02002021 addu r4,r16,r0 00142544: 04400010 bltz r2,0x 00142588 branch if r2 < 0 (r2 = 0 if ramza is found without crystal or treasure status 00142548: afa20010 sw r2,0x0010(r29) store returned value 0014254c: 0c0602bf jal 0x00180afc get unit data? 00142550: 00402021 addu r4,r2,r0 00142554: 00401821 addu r3,r2,r0 00142558: 90620161 lbu r2,0x0161(r3) load ENTD ID 0014255c: 00000000 nop 00142560: 2442ff88 addiu r2,r2,0xff88 ENTD ID - 0x77 00142564: 2c420005 sltiu r2,r2,0x0005 00142568: 10400007 beq r2,r0,0x 00142588 branch if ENTD ID - 0x77 is greater than 0x05 0014256c: 00601021 addu r2,r3,r0 00142570: 08050967 j 0x 0014259c jump to end 00142574: 00000000 nop 00142578: 0c023388 jal 0x0008ce20 ??? 0014257c: 00000000 nop 00142580: 04410003 bgez r2,0x00142590 00142584: 00000000 nop 00142588: 08050967 j 0x0014259c jump to end, r2 = 0xffff 0014258c: 2402ffff addiu r2,r0,0xffff 00142590: 8fa40010 lw r4,0x0010(r29) 00142594: 0c0602bf jal 0x00180afc get unit data? 00142598: 00000000 nop 0014259c: 8fbf001c lw r31,0x001c(r29) 001425a0: 8fb00018 lw r16,0x0018(r29) 001425a4: 27bd0020 addiu r29,r29,0x0020 001425a8: 03e00008 jr r31 001425ac: 00000000 nop