World Map Script 0x02
Jump to navigation
Jump to search
If Script Data is less then loaded integer, continue script
000914bc: 27bdffe0 addiu r29,r29,0xffe0 000914c0: 27a40010 addiu r4,r29,0x0010 000914c4: afbf0018 sw r31,0x0018(r29) 000914c8: 0c024514 jal 0x00091450 Store Script Data into r4 and r5 000914cc: 27a50014 addiu r5,r29,0x0014 000914d0: 8fa40010 lw r4,0x0010(r29) 000914d4: 0c03bc6a jal 0x000ef1a8 Get integer data 000914d8: 00000000 nop 000914dc: 8fa30014 lw r3,0x0014(r29) Load the World Map Control value 000914e0: 00000000 nop 000914e4: 0043102a slt r2,r2,r3 Set r2 to 1 if Integer data is less then r3 000914e8: 10400007 beq r2,r0,0x00091508 Branch if integer data > World Map Control value 000914ec: 00000000 nop 000914f0: 3c03800d lui r3,0x800d r3 = 0x800d0000 000914f4: 24634644 addiu r3,r3,0x4644 r3 = 0x800d4644 000914f8: 8c620000 lw r2,0x0000(r3) Load word at 0x800d4644 000914fc: 00000000 nop 00091500: 34420002 ori r2,r2,0x0002 Activate flag 0x02 at 0x800d4644 00091504: ac620000 sw r2,0x0000(r3) Store active flag 00091508: 8fbf0018 lw r31,0x0018(r29) 0009150c: 27bd0020 addiu r29,r29,0x0020 00091510: 03e00008 jr r31 00091514: 00000000 nop