Unit RGB/Sprite Type/etc Initialization
Jump to navigation
Jump to search
Unit RGB/Sprite Type/? Initialization 0007ac60: 34050007 ori r5,r0,0x0007 Counter = 7 0007ac64: 00041100 sll r2,r4,0x04 Misc Unit ID * 16 0007ac68: 00441021 addu r2,r2,r4 ID * 17 0007ac6c: 00021180 sll r2,r2,0x06 ID * 1088 0007ac70: 3c03800b lui r3,0x800b 0007ac74: 24637624 addiu r3,r3,0x7624 0007ac78: 00432021 addu r4,r2,r3 r4 = Unit's Animation Data Pointer 0007ac7c: 24830031 addiu r3,r4,0x0031 r3 = Unit's 6th "piece" data pointer 0007ac80: 34020080 ori r2,r0,0x0080 r2 = 0x80 0007ac84: a0820002 sb r2,0x0002(r4) Store RGB Shading = 0x80 (neutral) 0007ac88: a0820001 sb r2,0x0001(r4) 0007ac8c: a0820000 sb r2,0x0000(r4) 0007ac90: a0600014 sb r0,0x0014(r3) Store piece's Y Load Location 2? = 0 0007ac94: 24a5ffff addiu r5,r5,0xffff Counter -- 0007ac98: 04a1fffd bgez r5,0x0007ac90 Branch if Counter >= 0 0007ac9c: 2463fff9 addiu r3,r3,0xfff9 Pointer -= 7 0007aca0: a0800003 sb r0,0x0003(r4) Store Sprite Type? = None (later set to sprite type) 0007aca4: 03e00008 jr r31 0007aca8: 00801021 addu r2,r4,r0 r2 = Unit's Animation Data Pointer