Get Palette Data
Jump to navigation
Jump to search
000926d8: 27bdffe0 addiu r29,r29,0xffe0 000926dc: afb20018 sw r18,0x0018(r29) 000926e0: 00a09021 addu r18,r5,r0 r18 = Section ID 000926e4: 00121080 sll r2,r18,0x02 ID * 4 000926e8: 00521021 addu r2,r2,r18 ID * 5 000926ec: 00021080 sll r2,r2,0x02 ID * 20 000926f0: 00521023 subu r2,r2,r18 ID * 19 000926f4: 00021180 sll r2,r2,0x06 ID * 1216 000926f8: 00521021 addu r2,r2,r18 ID * 1217 000926fc: 00022840 sll r5,r2,0x01 ID * 2434 00092700: afbf001c sw r31,0x001c(r29) 00092704: afb10014 sw r17,0x0014(r29) 00092708: afb00010 sw r16,0x0010(r29) 0009270c: 3c01800a lui r1,0x800a 00092710: 00250821 addu r1,r1,r5 00092714: 902295f5 lbu r2,-0x6a0b(r1) Load ? 00092718: 00000000 nop 0009271c: 14400020 bne r2,r0,0x000927a0 Branch if ? != 0 00092720: 34020001 ori r2,r0,0x0001 r2 = 1 00092724: 14e20014 bne r7,r2,0x00092778 Branch if Loading single palette 00092728: 3403000f ori r3,r0,0x000f Counter = F 0009272c: 24a20078 addiu r2,r5,0x0078 ? Pointer Mod = ID * 2434 + 0x78 00092730: 3c01800a lui r1,0x800a 00092734: 00220821 addu r1,r1,r2 00092738: a02095f6 sb r0,-0x6a0a(r1) 0009273c: 2463ffff addiu r3,r3,0xffff Counter -- 00092740: 0461fffb bgez r3,0x00092730 Branch if Counter >= 0 00092744: 2442fff8 addiu r2,r2,0xfff8 ? Pointer -= 8 00092748: 00008021 addu r16,r0,r0 Counter = 0 0009274c: 00808821 addu r17,r4,r0 r17 = Palette Pointer 00092750: 02202021 addu r4,r17,r0 r4 = Palette Pointer 00092754: 02402821 addu r5,r18,r0 r5 = Section ID 00092758: 0c024988 jal 0x00092620 Extract RGB+Alpha from Palette 0009275c: 02003021 addu r6,r16,r0 r6 = Counter (why?) 00092760: 26100001 addiu r16,r16,0x0001 Counter ++ 00092764: 2a020010 slti r2,r16,0x0010 00092768: 1440fff9 bne r2,r0,0x00092750 Branch if Counter < 16 0009276c: 26310020 addiu r17,r17,0x0020 Palette Pointer += 0x20 00092770: 080249e6 j 0x00092798 00092774: 34020001 ori r2,r0,0x0001 r2 = 1 00092778: 000610c0 sll r2,r6,0x03 Unit's ID * 8 0009277c: 00451021 addu r2,r2,r5 Unit's ID * 8 + Section ID * 2434 00092780: 3c01800a lui r1,0x800a 00092784: 00220821 addu r1,r1,r2 00092788: a02095f6 sb r0,-0x6a0a(r1) Store ? = 0 0009278c: 0c024988 jal 0x00092620 Extract RGB+Alpha from Palette 00092790: 02402821 addu r5,r18,r0 r5 = Section ID 00092794: 34020001 ori r2,r0,0x0001 r2 = 1 00092798: 3c01800a lui r1,0x800a 0009279c: ac2295ec sw r2,-0x6a14(r1) Store ? = 1 (already done?) 000927a0: 8fbf001c lw r31,0x001c(r29) 000927a4: 8fb20018 lw r18,0x0018(r29) 000927a8: 8fb10014 lw r17,0x0014(r29) 000927ac: 8fb00010 lw r16,0x0010(r29) 000927b0: 27bd0020 addiu r29,r29,0x0020 000927b4: 03e00008 jr r31 000927b8: 00000000 nop