00136df4 - 00136eac
Jump to navigation
Jump to search
00136df4: 27bdffe0 addiu r29,r29,0xffe0 00136df8: afb10014 sw r17,0x0014(r29) 00136dfc: 00808821 addu r17,r4,r0 unit ID 00136e00: 00042400 sll r4,r4,0x10 00136e04: 00044403 sra r8,r4,0x10 00136e08: 00083080 sll r6,r8,0x02 unit ID * 4 00136e0c: 00051c00 sll r3,r5,0x10 equip slot 00136e10: afbf0018 sw r31,0x0018(r29) 00136e14: afb00010 sw r16,0x0010(r29) 00136e18: 3c01801d lui r1,0x801d 00136e1c: 00260821 addu r1,r1,r6 00136e20: 8c22d5ec lw r2,-0x2a14(r1) formation pointer 00136e24: 00033bc3 sra r7,r3,0x0f 00136e28: 00e21021 addu r2,r7,r2 00136e2c: 94440054 lhu r4,0x0054(r2) equip slot's equip 00136e30: 00000000 nop 00136e34: 10800018 beq r4,r0,0x00136e98 end if 0 00136e38: 00a08021 addu r16,r5,r0 00136e3c: 000413c3 sra r2,r4,0x0f 00136e40: 14400008 bne r2,r0,0x00136e64 branch if slot's equip is negative? 00136e44: 00c81021 addu r2,r6,r8 00136e48: 3c03801d lui r3,0x801d 00136e4c: 2463d43c addiu r3,r3,0xd43c 00136e50: 00021040 sll r2,r2,0x01 00136e54: 00431021 addu r2,r2,r3 00136e58: 00e21021 addu r2,r7,r2 00136e5c: 0804db9d j 0x00136e74 00136e60: a4440000 sh r4,0x0000(r2) store slots equip in fitting room 00136e64: 0c048dc2 jal 0x00123708 load item's price 00136e68: 308403ff andi r4,r4,0x03ff 00136e6c: 0c04d4d8 jal 0x00135360 subtract item's price from fitting room cost 00136e70: 00022023 subu r4,r0,r2 00136e74: 00111400 sll r2,r17,0x10 00136e78: 00021383 sra r2,r2,0x0e 00136e7c: 00101c00 sll r3,r16,0x10 00136e80: 3c01801d lui r1,0x801d 00136e84: 00220821 addu r1,r1,r2 00136e88: 8c22d5ec lw r2,-0x2a14(r1) 00136e8c: 00031bc3 sra r3,r3,0x0f 00136e90: 00621821 addu r3,r3,r2 00136e94: a4600054 sh r0,0x0054(r3) store no item in unit's equip 00136e98: 8fbf0018 lw r31,0x0018(r29) 00136e9c: 8fb10014 lw r17,0x0014(r29) 00136ea0: 8fb00010 lw r16,0x0010(r29) 00136ea4: 27bd0020 addiu r29,r29,0x0020 00136ea8: 03e00008 jr r31 00136eac: 00000000 nop