Difference between revisions of "World Map Script 0x01"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'>If Script Data is equal to loaded integer, continue script 000913f8: 27bdffe0 addiu r29,r29,0xffe0 000913fc: 27a40010 addiu r4,r29,0x0010 r4 = ...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<font face='Courier New'>If Script Data is equal to loaded integer, continue script | <font face='Courier New'>If Script Data is equal to loaded integer, continue script | ||
000913f8: 27bdffe0 addiu r29,r29,0xffe0 | 000913f8: 27bdffe0 addiu r29,r29,0xffe0 | ||
− | 000913fc: 27a40010 addiu r4,r29,0x0010 | + | 000913fc: 27a40010 addiu r4,r29,0x0010 r4 = stack + 0x10 |
00091400: afbf0018 sw r31,0x0018(r29) | 00091400: afbf0018 sw r31,0x0018(r29) | ||
− | 00091404: 0c024514 jal 0x00091450 | + | 00091404: 0c024514 jal 0x00091450 [[Store Script Data into r4 and r5]] |
− | 00091408: 27a50014 addiu r5,r29,0x0014 | + | 00091408: 27a50014 addiu r5,r29,0x0014 r5 = stack + 0x14 |
0009140c: 8fa40010 lw r4,0x0010(r29) | 0009140c: 8fa40010 lw r4,0x0010(r29) | ||
− | 00091410: 0c03bc6a jal 0x000ef1a8 | + | 00091410: 0c03bc6a jal 0x000ef1a8 Get integer data |
00091414: 00000000 nop | 00091414: 00000000 nop | ||
− | 00091418: 8fa30014 lw r3,0x0014(r29) | + | 00091418: 8fa30014 lw r3,0x0014(r29) Load stored script data |
0009141c: 00000000 nop | 0009141c: 00000000 nop | ||
− | 00091420: 10430007 beq r2,r3,0x00091440 | + | 00091420: 10430007 beq r2,r3,0x00091440 Branch if they are equal |
00091424: 00000000 nop | 00091424: 00000000 nop | ||
− | 00091428: 3c03800d lui r3,0x800d | + | 00091428: 3c03800d lui r3,0x800d r3 = 0x800d0000 |
− | 0009142c: 24634644 addiu r3,r3,0x4644 | + | 0009142c: 24634644 addiu r3,r3,0x4644 r3 = 0x800d4644 |
− | 00091430: 8c620000 lw r2,0x0000(r3) | + | 00091430: 8c620000 lw r2,0x0000(r3) Load value 0x800d4644 |
00091434: 00000000 nop | 00091434: 00000000 nop | ||
00091438: 34420002 ori r2,r2,0x0002 | 00091438: 34420002 ori r2,r2,0x0002 | ||
− | 0009143c: ac620000 sw r2,0x0000(r3) | + | 0009143c: ac620000 sw r2,0x0000(r3) Activate flag 0x02 at 0x800d4644 |
00091440: 8fbf0018 lw r31,0x0018(r29) | 00091440: 8fbf0018 lw r31,0x0018(r29) | ||
00091444: 27bd0020 addiu r29,r29,0x0020 | 00091444: 27bd0020 addiu r29,r29,0x0020 |
Latest revision as of 00:45, 14 December 2012
If Script Data is equal to loaded integer, continue script
000913f8: 27bdffe0 addiu r29,r29,0xffe0 000913fc: 27a40010 addiu r4,r29,0x0010 r4 = stack + 0x10 00091400: afbf0018 sw r31,0x0018(r29) 00091404: 0c024514 jal 0x00091450 Store Script Data into r4 and r5 00091408: 27a50014 addiu r5,r29,0x0014 r5 = stack + 0x14 0009140c: 8fa40010 lw r4,0x0010(r29) 00091410: 0c03bc6a jal 0x000ef1a8 Get integer data 00091414: 00000000 nop 00091418: 8fa30014 lw r3,0x0014(r29) Load stored script data 0009141c: 00000000 nop 00091420: 10430007 beq r2,r3,0x00091440 Branch if they are equal 00091424: 00000000 nop 00091428: 3c03800d lui r3,0x800d r3 = 0x800d0000 0009142c: 24634644 addiu r3,r3,0x4644 r3 = 0x800d4644 00091430: 8c620000 lw r2,0x0000(r3) Load value 0x800d4644 00091434: 00000000 nop 00091438: 34420002 ori r2,r2,0x0002 0009143c: ac620000 sw r2,0x0000(r3) Activate flag 0x02 at 0x800d4644 00091440: 8fbf0018 lw r31,0x0018(r29) 00091444: 27bd0020 addiu r29,r29,0x0020 00091448: 03e00008 jr r31 0009144c: 00000000 nop
Called By
80091238 - World Map Scripts