001237e4 - 00123820

From Final Fantasy Hacktics Wiki
Revision as of 02:23, 29 September 2024 by Pride (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

001237e4: 27bdffe8 addiu r29,r29,0xffe8        #
001237e8: afb00010 sw r16,0x0010(r29)          #
001237ec: 309003ff andi r16,r4,0x03ff          #
001237f0: 02002021 addu r4,r16,r0              # r4 = item number
001237f4: afbf0014 sw r31,0x0014(r29)          # 
001237f8: 0c04822e jal 0x001208b8              # item quantity = Change Item Quantity on Equip(item number, 0)
001237fc: 00002821 addu r5,r0,r0               # r5 = 0
00123800: 02002021 addu r4,r16,r0              # r4 = item number
00123804: 0c048dd9 jal 0x00123764              # result = func_00123764 - 001237e0(item number)
00123808: 00408021 addu r16,r2,r0              # r16 = item quantity
0012380c: 02021021 addu r2,r16,r2              # return result + item quantity
00123810: 8fbf0014 lw r31,0x0014(r29)          #
00123814: 8fb00010 lw r16,0x0010(r29)          #
00123818: 27bd0018 addiu r29,r29,0x0018        #
0012381c: 03e00008 jr r31                      #
00123820: 00000000 nop                         #