Color Field
Jump to navigation
Jump to search
# ROUTINE: ColorField # Parameters: # r4 = Preset Color (0x04 for default) # r5 = Number of Frames # r6 = Red value (-128..127) # r7 = Green value (-128..127) # *(sp + 0x10) = Blue value (-128..127) 80093170: 27bdffd8 addiu r29,r29,-0x0028 80093174: 34020001 ori r2,r0,0x0001 80093178: 00063400 sll r6,r6,0x10 8009317c: 00063403 sra r6,r6,0x10 80093180: 00073c00 sll r7,r7,0x10 80093184: 8fa30038 lw r3,0x0038(r29) 80093188: 00073c03 sra r7,r7,0x10 8009318c: afa60014 sw r6,0x0014(r29) 80093190: 00003021 addu r6,r0,r0 80093194: afa70018 sw r7,0x0018(r29) 80093198: 00003821 addu r7,r0,r0 8009319c: afbf0020 sw r31,0x0020(r29) 800931a0: afa20010 sw r2,0x0010(r29) 800931a4: 00031c00 sll r3,r3,0x10 800931a8: 00031c03 sra r3,r3,0x10 800931ac: 0c023dc4 jal 0x8008f710 # Palette Modification (preset, numFrames, 0, 0, 1, red, green, blue); 800931b0: afa3001c sw r3,0x001c(r29) 800931b4: 8fbf0020 lw r31,0x0020(r29) 800931b8: 27bd0028 addiu r29,r29,0x0028 800931bc: 03e00008 jr r31 800931c0: 00000000 nop