Starting Inventory

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Starting Inventory
00042a10: 340300ff ori r3,r0,0x00ff		
00042a14: 3c028006 lui r2,0x8006		
00042a18: 244297df addiu r2,r2,0x97df		#Load Inventory
00042a1c: a0400000 sb r0,0x0000(r2)		#Clear inventory quantity of type r3
00042a20: 2463ffff addiu r3,r3,0xffff		#r3 = r3 - 1, next type of item
00042a24: 0461fffd bgez r3,0x00042a1c		#loop to clear
00042a28: 2442ffff addiu r2,r2,0xffff		#r2 = r2 - 1, next byte of type item
00042a2c: 34020005 ori r2,r0,0x0005		R2 = 5
00042a30: 34030002 ori r3,r0,0x0002		R3 = 2
00042a34: 3c018006 lui r1,0x8006		
00042a38: a02297d0 sb r2,-0x6830(r1)		Store Potion Amount [05]
00042a3c: 34020001 ori r2,r0,0x0001		R2 = 1
00042a40: 3c018006 lui r1,0x8006		
00042a44: a02397d1 sb r3,-0x682f(r1)		Store Hi Potion Amount [02]
00042a48: 3c018006 lui r1,0x8006		
00042a4c: a02297d2 sb r2,-0x682e(r1)		Store X Potion Amount [01]
00042a50: 3c018006 lui r1,0x8006		
00042a54: a02297d3 sb r2,-0x682d(r1)		Store Ether Amount [01]
00042a58: 3c018006 lui r1,0x8006		
00042a5c: a02297d4 sb r2,-0x682c(r1)		Store Hi Ether Amount [01]
00042a60: 3c018006 lui r1,0x8006		
00042a64: a02297d5 sb r2,-0x682b(r1)		Store Elixir Amount [01]
00042a68: 3c018006 lui r1,0x8006		
00042a6c: a02297d6 sb r2,-0x682a(r1)		Store Antidote Amount [01]
00042a70: 3c018006 lui r1,0x8006		
00042a74: a02397d7 sb r3,-0x6829(r1)		Store Eye Drop Amount [02]
00042a78: 3c018006 lui r1,0x8006		
00042a7c: a02297d8 sb r2,-0x6828(r1)		Store Echo Grass Amount [01]
00042a80: 3c018006 lui r1,0x8006		
00042a84: a02297d9 sb r2,-0x6827(r1)		Store Maiden's Kiss Amount [01]
00042a88: 3c018006 lui r1,0x8006		
00042a8c: a02297da sb r2,-0x6826(r1)		Store Soft Amount [01]
00042a90: 3c018006 lui r1,0x8006		
00042a94: a02297db sb r2,-0x6825(r1)		Store Holy Water Amount [01]
00042a98: 3c018006 lui r1,0x8006		
00042a9c: a02297dc sb r2,-0x6824(r1)		Store Remedy Amount [01]
00042aa0: 3c018006 lui r1,0x8006		
00042aa4: a02397dd sb r3,-0x6823(r1)		Store Phoenix Down Amount [02]	
00042aa8: 03e00008 jr r31			
00042aac: 00000000 nop


Return Locations

00040a28: Routine at 00040a00

00042af4: Routine at 00042ab0

00143e2c: Routine at 00143bd8