Get Menu ID based on mount, moveable/actable
(Redirected from 0018114c - 001811f4)
Jump to navigation
Jump to search
Get Menu ID based on mount, moveable/actable 18114c: 0018114c - 001811f4
001810d4: Load unit Data 001811f8: Player Control Routine? 0018114c: 27bdffe8 addiu r29,r29,0xffe8 00181150: afbf0014 sw r31,0x0014(r29) Store 0x0 onto Stack 00181154: 0c060435 jal 0x001810d4 Load unit Data 00181158: afb00010 sw r16,0x0010(r29) Store 0x0 onto Stack 0018115c: 00408021 addu r16,r2,r0 00181160: 12000020 beq r16,r0,0x001811e4 Branch if Unit Data == 0x0 00181164: 2402ffff addiu r2,r0,0xffff 00181168: 0c06047e jal 0x001811f8 Player Control Routine 0018116c: 02002021 addu r4,r16,r0 00181170: 92030182 lbu r3,0x0182(r16) Load Mount Info 00181174: 00000000 nop 00181178: 30630080 andi r3,r3,0x0080 Mount Info & 0x80 0018117c: 10600018 beq r3,r0,0x001811e0 Branch if Mount Info & 0x80 == 0x0 00181180: 00402021 addu r4,r2,r0 00181184: 3402000e ori r2,r0,0x000e r2 = (0xE) 14 00181188: 10820010 beq r4,r2,0x001811cc Branch if -0x1 == E (14) 0018118c: 2882000f slti r2,r4,0x000f Set if -0x1 < 15 00181190: 10400005 beq r2,r0,0x001811a8 Branch if not 00181194: 00000000 nop 00181198: 1080000a beq r4,r0,0x001811c4 Branch if -0x1 == 0x0 0018119c: 00801021 addu r2,r4,r0 001811a0: 08060479 j 0x001811e4 001811a4: 00000000 nop 001811a8: 34020013 ori r2,r0,0x0013 r2 = (0x13) 19 001811ac: 10820009 beq r4,r2,0x001811d4 Branch if -0x1 == 13 (19) 001811b0: 34020014 ori r2,r0,0x0014 r2 = (0x14) 20 001811b4: 10820009 beq r4,r2,0x001811dc Branch if -0x1 == 14 (20) 001811b8: 00801021 addu r2,r4,r0 001811bc: 08060479 j 0x001811e4 001811c0: 00000000 nop 001811c4: 08060478 j 0x001811e0 001811c8: 3404002e ori r4,r0,0x002e r4 = (0x2E) 46 001811cc: 08060478 j 0x001811e0 001811d0: 3404002f ori r4,r0,0x002f r4 = (0x2F) 47 001811d4: 08060478 j 0x001811e0 001811d8: 34040030 ori r4,r0,0x0030 r4 = (0x30) 48 001811dc: 34040031 ori r4,r0,0x0031 r4 = (0x31) 49 001811e0: 00801021 addu r2,r4,r0 001811e4: 8fbf0014 lw r31,0x0014(r29) Load Stack + 0x14 001811e8: 8fb00010 lw r16,0x0010(r29) Load Stack + 0x10 001811ec: 27bd0018 addiu r29,r29,0x0018 001811f0: 03e00008 jr r31 Jump to Address 001811f4: 00000000 nop