Difference between revisions of "Set move/act flags"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
  00183c08: 3c038019 lui r3,0x8019
 
  00183c08: 3c038019 lui r3,0x8019
 
  00183c0c: 246308cc addiu r3,r3,0x08cc r3 = unit data pointer
 
  00183c0c: 246308cc addiu r3,r3,0x08cc r3 = unit data pointer
  00183c10: 00432021 addu r4,r2,r3 r4 = unit data
+
  00183c10: 00432021 addu r4,r2,r3 r4 = unit data
 
  00183c14: afbf0014 sw r31,0x0014(r29)
 
  00183c14: afbf0014 sw r31,0x0014(r29)
 
  00183c18: 90830001 lbu r3,0x0001(r4) r3 = unit ID
 
  00183c18: 90830001 lbu r3,0x0001(r4) r3 = unit ID
Line 33: Line 33:
 
  00183c68: 00000000 nop
 
  00183c68: 00000000 nop
 
</font>
 
</font>
 +
 +
 +
== Return Locations ==
 +
 +
00183bb4: - [[Set Only Action Taken]]
 +
00183bd8: - [[Set Only Movement Taken]]

Revision as of 05:16, 9 February 2021

00183bf0: 27bdffe8 addiu r29,r29,0xffe8
00183bf4: afb00010 sw r16,0x0010(r29)
00183bf8: 00808021 addu r16,r4,r0		r4= 10 for ramza... unitID?
00183bfc: 001010c0 sll r2,r16,0x03		r2 = 80
00183c00: 00501023 subu r2,r2,r16		r2 = 70
00183c04: 00021180 sll r2,r2,0x06		r2 = 1c00
00183c08: 3c038019 lui r3,0x8019
00183c0c: 246308cc addiu r3,r3,0x08cc		r3 = unit data pointer
00183c10: 00432021 addu r4,r2,r3		r4 = unit data
00183c14: afbf0014 sw r31,0x0014(r29)
00183c18: 90830001 lbu r3,0x0001(r4)		r3 = unit ID				
00183c1c: 340200ff ori r2,r0,0x00ff
00183c20: 1062000d beq r3,r2,0x00183c58		skip if unit does not exist
00183c24: 2402ffff addiu r2,r0,0xffff
00183c28: 10a00002 beq r5,r0,0x00183c34		r5 = 01 if coming from "Set Only Movement Taken" routine, 0 if from "Set Only Action Taken" routine
00183c2c: 34020001 ori r2,r0,0x0001
00183c30: a0820187 sb r2,0x0187(r4)		store movement taken
00183c34: 10c00002 beq r6,r0,0x00183c40
00183c38: 34020001 ori r2,r0,0x0001
00183c3c: a0820188 sb r2,0x0188(r4)		Store action taken
00183c40: 0c060f44 jal 0x00183d10		jump to moved/acted checks
00183c44: 00000000 nop
00183c48: 10400003 beq r2,r0,0x00183c58		Branch if action not taken
00183c4c: 00000000 nop
00183c50: 0c060f1b jal 0x00183c6c		Jump to end of turn***
00183c54: 02002021 addu r4,r16,r0
00183c58: 8fbf0014 lw r31,0x0014(r29)
00183c5c: 8fb00010 lw r16,0x0010(r29)
00183c60: 27bd0018 addiu r29,r29,0x0018
00183c64: 03e00008 jr r31
00183c68: 00000000 nop


Return Locations

00183bb4: - Set Only Action Taken
00183bd8: - Set Only Movement Taken