Weapon Inventory
Jump to navigation
Jump to search
- Weapon Inventory*
00195a30: 2622ff86 addiu r2,r17,0xff86 r2 = Shuriken ID 00195a34: 2c420003 sltiu r2,r2,0x0003 00195a38: 14400005 bne r2,r0,0x 00195a50 Branch if Weapon isn't a Shuriken 00195a3c: 3402017e ori r2,r0,0x017e r2 = 0x17e (Throw Shuriken) 00195a40: 2622ff83 addiu r2,r17,0xff83 r2 = Ball ID 00195a44: 2c420003 sltiu r2,r2,0x0003 00195a48: 10400009 beq r2,r0,0x 00195a70 Branch if Weapon isn't a Ball 00195a4c: 34020189 ori r2,r0,0x0189 r2 = Throw Ball 00195a50: a6020002 sh r2,0x0002(r16) Store Ability ID = Throw Shuriken/Ball 00195a54: 001110c0 sll r2,r17,0x03 ID * 8 00195a58: a2110006 sb r17,0x0006(r16) Store Item Considered = Weapon ID 00195a5c: 3c018006 lui r1,0x8006 00195a60: 00220821 addu r1,r1,r2 00195a64: 90223abe lbu r2,0x3abe(r1) Load Weapon's Element 00195a68: 080656a0 j 0x 00195a80 00195a6c: a2020010 sb r2,0x0010(r16) Store Ability's Element 00195a70: 96020e14 lhu r2,0x0e14(r16) Load Chosen Throw ID? 00195a74: 92030e16 lbu r3,0x0e16(r16) Load Chosen Weapon ID? 00195a78: a6020002 sh r2,0x0002(r16) Store Ability ID = Chosen Throw ID? 00195a7c: a2030006 sb r3,0x0006(r16) Store Item Considered = Chosen Weapon ID? 00195a80: 9242003a lbu r2,0x003a(r18) Load Unit's Move 00195a84: 86110002 lh r17,0x0002(r16) Load Ability ID 00195a88: 08065700 j 0x 00195c00 00195a8c: a2020004 sb r2,0x0004(r16) Store Ability Range = Move