Status CT Setting
Jump to navigation
Jump to search
Status CT Setting 0005db70: 34020002 ori r2,r0,0x0002 r2 = 2 0005db74: 14a2000d bne r5,r2,0x0005dbac Branch if Counter != 2 (Death) 0005db78: 00803821 addu r7,r4,r0 r7 = Unit's Data Pointer 0005db7c: 90e20005 lbu r2,0x0005(r7) Load Unit's Battle Flags 0005db80: 00000000 nop 0005db84: 30420004 andi r2,r2,0x0004 0005db88: 14400007 bne r2,r0,0x0005dba8 Branch if Unit is Immortal 0005db8c: 340200ff ori r2,r0,0x00ff r2 = ff 0005db90: 90e20006 lbu r2,0x0006(r7) Load Unit's Gender Byte 0005db94: 00000000 nop 0005db98: 30420009 andi r2,r2,0x0009 0005db9c: 14400002 bne r2,r0,0x0005dba8 Branch if Unit has Load/Save Formation 0005dba0: 340200ff ori r2,r0,0x00ff r2 = ff 0005dba4: 34020003 ori r2,r0,0x0003 r2 = 3 0005dba8: a0e20007 sb r2,0x0007(r7) Store Unit's Death Counter = 3 or ff 0005dbac: 24a4ffe8 addiu r4,r5,0xffe8 r4 = Counter - 0x18 0005dbb0: 2c820010 sltiu r2,r4,0x0010 0005dbb4: 10400015 beq r2,r0,0x0005dc0c Branch if Counter != last 16 statuses (not a CT status) 0005dbb8: 00001021 addu r2,r0,r0 r2 = 0 0005dbbc: 10c00005 beq r6,r0,0x0005dbd4 Branch if Not Initializing Data? 0005dbc0: 00804021 addu r8,r4,r0 r8 = Counter - 0x18 0005dbc4: 00e81021 addu r2,r7,r8 r2 = Unit's Data Pointer + Counter - 0x18 0005dbc8: a040005d sb r0,0x005d(r2) Store X Status' CT = 0 0005dbcc: 08017703 j 0x0005dc0c 0005dbd0: 00001021 addu r2,r0,r0 r2 = 0 0005dbd4: 3402000f ori r2,r0,0x000f r2 = f 0005dbd8: 15020006 bne r8,r2,0x0005dbf4 Branch if Status Checked isn't Death Sentence 0005dbdc: 00001021 addu r2,r0,r0 r2 = 0 0005dbe0: 90e2006c lbu r2,0x006c(r7) Load Unit's Death Sentence CT 0005dbe4: 00000000 nop 0005dbe8: 14400008 bne r2,r0,0x0005dc0c Branch if DS CT != 0 (Check if already inflicted) 0005dbec: 2402ffff addiu r2,r0,0xffff r2 = ffffffff 0005dbf0: 00001021 addu r2,r0,r0 r2 = 0 0005dbf4: 00051900 sll r3,r5,0x04 r3 = Counter * 16 0005dbf8: 3c018006 lui r1,0x8006 0005dbfc: 00230821 addu r1,r1,r3 0005dc00: 90245de7 lbu r4,0x5de7(r1) Load Status's CT 0005dc04: 00e81821 addu r3,r7,r8 r3 = Unit's Data Pointer + Counter - 0x18 0005dc08: a064005d sb r4,0x005d(r3) Store Unit's Status's CT 0005dc0c: 03e00008 jr r31 0005dc10: 00000000 nop