Store Some Acting Unit Data
Jump to navigation
Jump to search
0017dbc8: 27bdffe8 addiu r29,r29,0xffe8 0017dbcc: 00802821 addu r5,r4,r0 r5 = Unit's Data Pointer 0017dbd0: afbf0010 sw r31,0x0010(r29) 0017dbd4: 90a30003 lbu r3,0x0003(r5) Load Unit's Job ID 0017dbd8: 3402005d ori r2,r0,0x005d 0017dbdc: 14620004 bne r3,r2,0x0017dbf0 Branch if Job != Mime 0017dbe0: 340200ff ori r2,r0,0x00ff r2 = FF 0017dbe4: a0a2001d sb r2,0x001d(r5) Store RH Weapon = None 0017dbe8: 0805f707 j 0x0017dc1c 0017dbec: a0a2001f sb r2,0x001f(r5) Store LH Weapon = None 0017dbf0: 3c028019 lui r2,0x8019 0017dbf4: 8c42f5f0 lw r2,-0x0a10(r2) Load AI Calculation Type? 0017dbf8: 00000000 nop 0017dbfc: 14400018 bne r2,r0,0x0017dc60 Branch if AI Calculation Type != 0 0017dc00: 00000000 nop 0017dc04: 94a20048 lhu r2,0x0048(r5) Load Unit's Y Coordinate + Facing 0017dc08: 00000000 nop 0017dc0c: 00021202 srl r2,r2,0x08 0017dc10: 3042000f andi r2,r2,0x000f r2 = Unit's Facing 0017dc14: 3c018019 lui r1,0x8019 0017dc18: a022389c sb r2,0x389c(r1) Store Facing 0017dc1c: 3c028019 lui r2,0x8019 0017dc20: 8c42f5f0 lw r2,-0x0a10(r2) Load AI Calculation Type? 0017dc24: 00000000 nop 0017dc28: 1440000d bne r2,r0,0x0017dc60 Branch if AI Calculation Type? != 0 0017dc2c: 00000000 nop 0017dc30: 90a20047 lbu r2,0x0047(r5) Load Unit's X Coordinate 0017dc34: 3c018019 lui r1,0x8019 0017dc38: a0222dcc sb r2,0x2dcc(r1) Store X Coordinate 0017dc3c: 94a20048 lhu r2,0x0048(r5) Load Unit's Y Coordinate + Facing 0017dc40: 90a30048 lbu r3,0x0048(r5) Load Unit's Y Coordinate 0017dc44: 000213c2 srl r2,r2,0x0f 0017dc48: 3c018019 lui r1,0x8019 0017dc4c: a0222dd4 sb r2,0x2dd4(r1) Store Unit's Map Level 0017dc50: 3c018019 lui r1,0x8019 0017dc54: a0232dd0 sb r3,0x2dd0(r1) Store Unit's Y Coordinate 0017dc58: 0805f71e j 0x0017dc78 0017dc5c: 00000000 nop 0017dc60: 3c048019 lui r4,0x8019 0017dc64: 24843848 addiu r4,r4,0x3848 r4 = (0x16e-0x182 from unit data) Pointer 0017dc68: 0c01788b jal 0x0005e22c Transfer Target ID? Through Mount Data 0017dc6c: 24a5016e addiu r5,r5,0x016e r5 = Unit's Attacker/Self ID? Pointer 0017dc70: 3c018019 lui r1,0x8019 0017dc74: ac20f5f0 sw r0,-0x0a10(r1) Store AI Calculation Type? = 0 0017dc78: 8fbf0010 lw r31,0x0010(r29) 0017dc7c: 27bd0018 addiu r29,r29,0x0018 0017dc80: 03e00008 jr r31 0017dc84: 00000000 nop