Get Unit's Spritesheet Value
Jump to navigation
Jump to search
0008dc24: 10800011 beq r4,r0,0x0008dc6c Branch if Misc Unit Data Pointer = 0 0008dc28: 00001021 addu r2,r0,r0 r2 = 0 (Fail) 0008dc2c: 8c820144 lw r2,0x0144(r4) Load Status Flags 5 0008dc30: 00000000 nop 0008dc34: 30420009 andi r2,r2,0x0009 0008dc38: 1440000c bne r2,r0,0x0008dc6c Branch if Unit is a Treasure/Crystal 0008dc3c: 00001021 addu r2,r0,r0 r2 = 0 (Fail) 0008dc40: 8c820140 lw r2,0x0140(r4) Load Status Flags 1-4 0008dc44: 00000000 nop 0008dc48: 30420004 andi r2,r2,0x0004 0008dc4c: 14400007 bne r2,r0,0x0008dc6c Branch if Unit is Dead 0008dc50: 00001021 addu r2,r0,r0 r2 = 0 (Fail) 0008dc54: 90820006 lbu r2,0x0006(r4) Load Spritesheet ID 0008dc58: 00000000 nop 0008dc5c: 00021080 sll r2,r2,0x02 ID * 4 0008dc60: 3c018009 lui r1,0x8009 0008dc64: 00220821 addu r1,r1,r2 0008dc68: 9022474b lbu r2,0x474b(r1) Load Spritesheet's Value 0008dc6c: 03e00008 jr r31 0008dc70: 00000000 nop