Find Active Unit Data Pointer

From Final Fantasy Hacktics Wiki
Revision as of 21:32, 22 December 2024 by Nyzer (talk | contribs) (Nyzer moved page Find Active Unit Data Pointer? to Find Active Unit Data Pointer: Fucking question marks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
00181114: 00002021 addu r4,r0,r0		Counter = 0
00181118: 3c038019 lui r3,0x8019
0018111c: 246308cc addiu r3,r3,0x08cc
00181120: 90620186 lbu r2,0x0186(r3)		Load Unit's Turn Flag?
00181124: 00000000 nop
00181128: 14400006 bne r2,r0,0x00181144		Branch if it is their turn?
0018112c: 00601021 addu r2,r3,r0		r2 = Unit Data Pointer
00181130: 24840001 addiu r4,r4,0x0001		Counter ++
00181134: 28820015 slti r2,r4,0x0015
00181138: 1440fff9 bne r2,r0,0x00181120		Branch if Counter < 0x15
0018113c: 246301c0 addiu r3,r3,0x01c0		Unit Data Pointer += 0x1c0
00181140: 00001021 addu r2,r0,r0		Unit Data Pointer = 0
00181144: 03e00008 jr r31
00181148: 00000000 nop