Difference between revisions of "Two hands check for equipping weapons"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 29: Line 29:
 
  00120b64: 14400005 bne r2,r0,0x00120b7c branch if forced 2 hands
 
  00120b64: 14400005 bne r2,r0,0x00120b7c branch if forced 2 hands
 
  00120b68: 00000000 nop
 
  00120b68: 00000000 nop
  00120b6c: 10a00004 beq r5,r0,0x00120b80 branch if ??
+
  00120b6c: 10a00004 beq r5,r0,0x00120b80 branch if unit doesn't have 2 hands
 
  00120b70: 30620004 andi r2,r3,0x0004
 
  00120b70: 30620004 andi r2,r3,0x0004
 
  00120b74: 10400003 beq r2,r0,0x00120b84 branch if not two handsable
 
  00120b74: 10400003 beq r2,r0,0x00120b84 branch if not two handsable

Latest revision as of 05:39, 18 December 2016

two hands check for equipping weapons two hands check for equipping weapons

00120afc: 27bdfff0 addiu r29,r29,0xfff0
00120b00: 00003821 addu r7,r0,r0
00120b04: 84820000 lh r2,0x0000(r4)
00120b08: 00003021 addu r6,r0,r0
00120b0c: 10400007 beq r2,r0,0x00120b2c
00120b10: 00401821 addu r3,r2,r0
00120b14: 84820002 lh r2,0x0002(r4)
00120b18: 00000000 nop
00120b1c: 14400008 bne r2,r0,0x00120b40
00120b20: 00000000 nop
00120b24: 080482d0 j 0x00120b40
00120b28: 306603ff andi r6,r3,0x03ff
00120b2c: 84820002 lh r2,0x0002(r4)
00120b30: 00000000 nop
00120b34: 10400002 beq r2,r0,0x00120b40
00120b38: 00401821 addu r3,r2,r0
00120b3c: 306603ff andi r6,r3,0x03ff
00120b40: 10c0000f beq r6,r0,0x00120b80		
00120b44: 28c2007a slti r2,r6,0x007a		set if valid weapon
00120b48: 1040000d beq r2,r0,0x00120b80
00120b4c: 000610c0 sll r2,r6,0x03
00120b50: 3c018006 lui r1,0x8006
00120b54: 00220821 addu r1,r1,r2
00120b58: 90233ab9 lbu r3,0x3ab9(r1)		load item flags
00120b5c: 00000000 nop
00120b60: 30620001 andi r2,r3,0x0001
00120b64: 14400005 bne r2,r0,0x00120b7c		branch if forced 2 hands
00120b68: 00000000 nop
00120b6c: 10a00004 beq r5,r0,0x00120b80		branch if unit doesn't have 2 hands
00120b70: 30620004 andi r2,r3,0x0004
00120b74: 10400003 beq r2,r0,0x00120b84		branch if not two handsable
00120b78: 00e01021 addu r2,r7,r0
00120b7c: 34070001 ori r7,r0,0x0001
00120b80: 00e01021 addu r2,r7,r0
00120b84: 27bd0010 addiu r29,r29,0x0010
00120b88: 03e00008 jr r31
00120b8c: 00000000 nop