Special spritesheet ID palette mods
Revision as of 12:37, 14 December 2024 by RetroTypes (talk | contribs) (RetroTypes moved page Special spritesheet ID palette mods? to Special spritesheet ID palette mods: Removing question mark )
00082110: 27bdffd0 addiu r29,r29,0xffd0 stack - 30 00082114: 8faa0044 lw r10,0x0044(r29) 14 stack 00082118: 8fab0048 lw r11,0x0048(r29) 18 stack 0008211c: 8fac004c lw r12,0x004c(r29) 1c stack 00082120: 8fae0040 lw r14,0x0040(r29) 10 stack 00082124: 8fad0050 lw r13,0x0050(r29) 20 stack 00082128: 3402009c ori r2,r0,0x009c 0008212c: afbf0028 sw r31,0x0028(r29) 00082130: 90880005 lbu r8,0x0005(r4) load VRAM slot 00082134: 90830006 lbu r3,0x0006(r4) load spritesheet ID 00082138: 90890007 lbu r9,0x0007(r4) load Palette 0008213c: 01407821 addu r15,r10,r0 00082140: 0160c021 addu r24,r11,r0 00082144: 1062001c beq r3,r2,0x000821b8 branch if sprite ID = crystal 00082148: 0180c821 addu r25,r12,r0 0008214c: 2862009d slti r2,r3,0x009d 00082150: 10400005 beq r2,r0,0x00082168 branch if sprite ID = frog/chest 00082154: 3402009b ori r2,r0,0x009b 00082158: 1062000b beq r3,r2,0x00082188 branch if sprite ID = chicken 0008215c: 00a02021 addu r4,r5,r0 00082160: 08020892 j 0x00082248 00082164: 00081100 sll r2,r8,0x04 00082168: 3402009d ori r2,r0,0x009d 0008216c: 1062001f beq r3,r2,0x000821ec branch if sprite ID = frog 00082170: 00a02021 addu r4,r5,r0 00082174: 3402009e ori r2,r0,0x009e 00082178: 10620028 beq r3,r2,0x0008221c branch if sprite ID = chest 0008217c: 00091140 sll r2,r9,0x05 00082180: 08020892 j 0x00082248 00082184: 00081100 sll r2,r8,0x04
Chicken palette:
00082188: 00091140 sll r2,r9,0x05 palette ID * 0x20 0008218c: 3c05800c lui r5,0x800c 00082190: 24a5f8d0 addiu r5,r5,0xf8d0 start of chicken palettes 00082194: 00452821 addu r5,r2,r5 00082198: 000a1400 sll r2,r10,0x10 0008219c: 00021403 sra r2,r2,0x10 000821a0: afa20014 sw r2,0x0014(r29) 000821a4: 000b1400 sll r2,r11,0x10 000821a8: 00021403 sra r2,r2,0x10 000821ac: afa20018 sw r2,0x0018(r29) 000821b0: 080208a6 j 0x00082298 000821b4: 000c1400 sll r2,r12,0x10
000821b8: 00a02021 addu r4,r5,r0 000821bc: 00091140 sll r2,r9,0x05 000821c0: 3c05800c lui r5,0x800c 000821c4: 24a5f790 addiu r5,r5,0xf790 000821c8: 00452821 addu r5,r2,r5 000821cc: 000a1400 sll r2,r10,0x10 000821d0: 00021403 sra r2,r2,0x10 000821d4: afa20014 sw r2,0x0014(r29) 000821d8: 000b1400 sll r2,r11,0x10 000821dc: 00021403 sra r2,r2,0x10 000821e0: afa20018 sw r2,0x0018(r29) 000821e4: 080208a6 j 0x00082298 000821e8: 000c1400 sll r2,r12,0x10 000821ec: 00091140 sll r2,r9,0x05 000821f0: 3c05800c lui r5,0x800c 000821f4: 24a5f830 addiu r5,r5,0xf830 000821f8: 00452821 addu r5,r2,r5 000821fc: 000a1400 sll r2,r10,0x10 00082200: 00021403 sra r2,r2,0x10 00082204: afa20014 sw r2,0x0014(r29) 00082208: 000b1400 sll r2,r11,0x10 0008220c: 00021403 sra r2,r2,0x10 00082210: afa20018 sw r2,0x0018(r29) 00082214: 080208a6 j 0x00082298 00082218: 000c1400 sll r2,r12,0x10 0008221c: 3c05800c lui r5,0x800c 00082220: 24a5f990 addiu r5,r5,0xf990 00082224: 00452821 addu r5,r2,r5 00082228: 000a1400 sll r2,r10,0x10 0008222c: 00021403 sra r2,r2,0x10 00082230: afa20014 sw r2,0x0014(r29) 00082234: 000b1400 sll r2,r11,0x10 00082238: 00021403 sra r2,r2,0x10 0008223c: afa20018 sw r2,0x0018(r29) 00082240: 080208a6 j 0x00082298 00082244: 000c1400 sll r2,r12,0x10
Not OTHER.SPR sprite:
00082248: 00481023 subu r2,r2,r8 0008224c: 00021100 sll r2,r2,0x04 00082250: 00481021 addu r2,r2,r8 00082254: 00022880 sll r5,r2,0x02 00082258: 00a22823 subu r5,r5,r2 0008225c: 000510c0 sll r2,r5,0x03 00082260: 00a22821 addu r5,r5,r2 00082264: 00052840 sll r5,r5,0x01 00082268: 3c02800d lui r2,0x800d 0008226c: 2442adbe addiu r2,r2,0xadbe 00082270: 00a22821 addu r5,r5,r2 00082274: 00091140 sll r2,r9,0x05 00082278: 00a22821 addu r5,r5,r2 0008227c: 000f1400 sll r2,r15,0x10 00082280: 00021403 sra r2,r2,0x10 00082284: afa20014 sw r2,0x0014(r29) 00082288: 00181400 sll r2,r24,0x10 0008228c: 00021403 sra r2,r2,0x10 00082290: afa20018 sw r2,0x0018(r29) 00082294: 00191400 sll r2,r25,0x10 00082298: 00021403 sra r2,r2,0x10 0008229c: afae0010 sw r14,0x0010(r29) 000822a0: afa2001c sw r2,0x001c(r29) 000822a4: 0c0249ef jal 0x000927bc 000822a8: afad0020 sw r13,0x0020(r29) 000822ac: 8fbf0028 lw r31,0x0028(r29) 000822b0: 27bd0030 addiu r29,r29,0x0030 000822b4: 03e00008 jr r31 000822b8: 00000000 nop