Talk:Starting Inventory

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

A good percentage of this routine just reloads the upper immediate, obviously wasting space. A simple rewrite to save space could be nice. A loop would save a little more space but you would be more restricted to what items you can add since there simply is not enough room to create a table to include all the items. So 42a74 - 42AAF freed up rather easily, add more starting items or just use the space for something else. Also to note r4 and maybe r5 should be free registers.

00042a10: 340300ff ori r3,r0,0x00ff
00042a14: 3c018006 lui r1,0x8006
00042a18: 242297df addiu r2,r1,0x97df
00042a1c: a0400000 sb r0,0x0000(r2)
00042a20: 2463ffff addiu r3,r3,0xffff
00042a24: 0461fffd bgez r3,0x00042a1c
00042a28: 2442ffff addiu r2,r2,0xffff
00042a2c: 34020005 ori r2,r0,0x0005
00042a30: 34030002 ori r3,r0,0x0002
00042a34: a02297d0 sb r2,-0x6830(r1)
00042a38: 34020001 ori r2,r0,0x0001
00042a3c: a02397d1 sb r3,-0x682f(r1)
00042a40: a02297d2 sb r2,-0x682e(r1)
00042a44: a02297d3 sb r2,-0x682d(r1)
00042a48: a02297d4 sb r2,-0x682c(r1)
00042a4c: a02297d5 sb r2,-0x682b(r1)
00042a50: a02297d6 sb r2,-0x682a(r1)
00042a54: a02397d7 sb r3,-0x6829(r1)
00042a58: a02297d8 sb r2,-0x6828(r1)
00042a5c: a02297d9 sb r2,-0x6827(r1)
00042a60: a02297da sb r2,-0x6826(r1)
00042a64: a02297db sb r2,-0x6825(r1)
00042a68: a02297dc sb r2,-0x6824(r1)
00042a6c: 03e00008 jr r31
00042a70: a02397dd sb r3,-0x6823(r1)

—  The preceding unsigned comment was added by Pride (talkcontribs) 11:10, 26 February 2012