From 64c0066becfc0441d1069b8e520bc57769f96d4f Mon Sep 17 00:00:00 2001 From: Eebit Date: Mon, 25 Mar 2024 01:19:54 -0400 Subject: [PATCH 1/2] (opanim) Decompile up to sub_80C9A94 --- asm/opanim_80C6474.s | 2309 ------------------------------------------ include/opanim.h | 168 ++- src/opanim-main.c | 1014 +++++++++++++++++++ 3 files changed, 1180 insertions(+), 2311 deletions(-) diff --git a/asm/opanim_80C6474.s b/asm/opanim_80C6474.s index 1654b490..ad711745 100644 --- a/asm/opanim_80C6474.s +++ b/asm/opanim_80C6474.s @@ -2,2315 +2,6 @@ .SYNTAX UNIFIED - THUMB_FUNC_START sub_80C8690 -sub_80C8690: @ 0x080C8690 - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - subs r0, #1 - cmp r0, #5 - bls _080C86C8 - b _080C8802 -_080C86C8: - lsls r0, r0, #2 - ldr r1, _080C86D4 @ _080C86D8 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080C86D4: .4byte _080C86D8 -_080C86D8: @ jump table - .4byte _080C86F0 @ case 0 - .4byte _080C8740 @ case 1 - .4byte _080C876C @ case 2 - .4byte _080C879C @ case 3 - .4byte _080C87CC @ case 4 - .4byte _080C87E0 @ case 5 -_080C86F0: - ldr r4, _080C8730 @ Img_OpAnimGenericCharacterBG - movs r0, #3 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C8734 @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8738 @ Tsa_OpAnimGenericCharacterBG - ldr r4, _080C873C @ gBG3TilemapBuffer - adds r1, r4, #0 - bl Decompress - movs r3, #0xe1 - lsls r3, r3, #8 - adds r2, r3, #0 - movs r1, #0xa0 - lsls r1, r1, #2 -_080C8718: - ldrh r3, [r4] - adds r0, r2, r3 - strh r0, [r4] - adds r4, #2 - subs r1, #1 - cmp r1, #0 - bne _080C8718 - movs r0, #8 - bl BG_EnableSyncByMask - b _080C8802 - .align 2, 0 -_080C8730: .4byte Img_OpAnimGenericCharacterBG -_080C8734: .4byte 0x06002000 -_080C8738: .4byte Tsa_OpAnimGenericCharacterBG -_080C873C: .4byte gBG3TilemapBuffer -_080C8740: - ldr r4, _080C8760 @ Img_OpAnimJoshua - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8764 @ Tsa_OpAnimJoshua2 - ldr r1, _080C8768 @ gGenericBuffer - bl Decompress - b _080C8802 - .align 2, 0 -_080C8760: .4byte Img_OpAnimJoshua -_080C8764: .4byte Tsa_OpAnimJoshua2 -_080C8768: .4byte gGenericBuffer -_080C876C: - ldr r4, _080C878C @ Img_OpAnimJoshua2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r3, _080C8790 @ 0x06002000 - adds r1, r1, r3 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8794 @ gUnknown_08ACC340 - ldr r1, _080C8798 @ gGenericBuffer+0x800 - bl Decompress - b _080C8802 - .align 2, 0 -_080C878C: .4byte Img_OpAnimJoshua2 -_080C8790: .4byte 0x06002000 -_080C8794: .4byte gUnknown_08ACC340 -_080C8798: .4byte gGenericBuffer+0x800 -_080C879C: - ldr r0, _080C87BC @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C87C0 @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C87C4 @ 0x0600D800 - ldr r2, _080C87C8 @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet - b _080C8802 - .align 2, 0 -_080C87BC: .4byte gBG0TilemapBuffer -_080C87C0: .4byte gBG1TilemapBuffer -_080C87C4: .4byte 0x0600D800 -_080C87C8: .4byte 0x01000400 -_080C87CC: - ldr r0, _080C87D8 @ Img_OpAnimShinningRing - ldr r1, _080C87DC @ 0x06004000 - bl Decompress - b _080C8802 - .align 2, 0 -_080C87D8: .4byte Img_OpAnimShinningRing -_080C87DC: .4byte 0x06004000 -_080C87E0: - ldr r0, _080C8820 @ Tsa_OpAnimShinningRing - ldr r4, _080C8824 @ 0x0600F000 - adds r1, r4, #0 - bl Decompress - movs r0, #0x80 - lsls r0, r0, #8 - adds r2, r0, #0 - movs r1, #0xa0 - lsls r1, r1, #2 -_080C87F4: - ldrh r3, [r4] - adds r0, r2, r3 - strh r0, [r4] - subs r1, #1 - adds r4, #2 - cmp r1, #0 - bne _080C87F4 -_080C8802: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8830 - ldr r0, _080C8828 @ gUnknown_08AA705C - bl Proc_EndEach - ldr r0, _080C882C @ gUnknown_08AA707C - bl Proc_EndEach - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C8834 - .align 2, 0 -_080C8820: .4byte Tsa_OpAnimShinningRing -_080C8824: .4byte 0x0600F000 -_080C8828: .4byte gUnknown_08AA705C -_080C882C: .4byte gUnknown_08AA707C -_080C8830: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C8834: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8690 - - THUMB_FUNC_START sub_80C883C -sub_80C883C: @ 0x080C883C - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - cmp r0, #2 - beq _080C88AC - cmp r0, #2 - bgt _080C887A - cmp r0, #1 - beq _080C8880 - b _080C88FA -_080C887A: - cmp r0, #3 - beq _080C88DC - b _080C88FA -_080C8880: - ldr r4, _080C88A0 @ Img_OpAnimLArachel - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C88A4 @ Tsa_OpAnimLArachel - ldr r1, _080C88A8 @ gGenericBuffer - bl Decompress - b _080C88FA - .align 2, 0 -_080C88A0: .4byte Img_OpAnimLArachel -_080C88A4: .4byte Tsa_OpAnimLArachel -_080C88A8: .4byte gGenericBuffer -_080C88AC: - ldr r4, _080C88CC @ Img_OpAnimLArachel2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C88D0 @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C88D4 @ Tsa_OpAnimLArachelLeft - ldr r1, _080C88D8 @ gGenericBuffer+0x800 - bl Decompress - b _080C88FA - .align 2, 0 -_080C88CC: .4byte Img_OpAnimLArachel2 -_080C88D0: .4byte 0x06002000 -_080C88D4: .4byte Tsa_OpAnimLArachelLeft -_080C88D8: .4byte gGenericBuffer+0x800 -_080C88DC: - ldr r0, _080C8914 @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C8918 @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C891C @ 0x0600D800 - ldr r2, _080C8920 @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet -_080C88FA: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8928 - ldr r0, _080C8924 @ gUnknown_08AA705C - bl Proc_EndEach - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C892C - .align 2, 0 -_080C8914: .4byte gBG0TilemapBuffer -_080C8918: .4byte gBG1TilemapBuffer -_080C891C: .4byte 0x0600D800 -_080C8920: .4byte 0x01000400 -_080C8924: .4byte gUnknown_08AA705C -_080C8928: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C892C: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C883C - - THUMB_FUNC_START sub_80C8934 -sub_80C8934: @ 0x080C8934 - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - cmp r0, #2 - beq _080C89A4 - cmp r0, #2 - bgt _080C8972 - cmp r0, #1 - beq _080C8978 - b _080C89F2 -_080C8972: - cmp r0, #3 - beq _080C89D4 - b _080C89F2 -_080C8978: - ldr r4, _080C8998 @ Img_OpAnimCharacterSeth - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C899C @ Tsa_OpAnimCharacterSeth - ldr r1, _080C89A0 @ gGenericBuffer - bl Decompress - b _080C89F2 - .align 2, 0 -_080C8998: .4byte Img_OpAnimCharacterSeth -_080C899C: .4byte Tsa_OpAnimCharacterSeth -_080C89A0: .4byte gGenericBuffer -_080C89A4: - ldr r4, _080C89C4 @ Img_OpAnimCharacterSeth2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C89C8 @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C89CC @ gUnknown_08AD236C - ldr r1, _080C89D0 @ gGenericBuffer+0x800 - bl Decompress - b _080C89F2 - .align 2, 0 -_080C89C4: .4byte Img_OpAnimCharacterSeth2 -_080C89C8: .4byte 0x06002000 -_080C89CC: .4byte gUnknown_08AD236C -_080C89D0: .4byte gGenericBuffer+0x800 -_080C89D4: - ldr r0, _080C8A04 @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C8A08 @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C8A0C @ 0x0600D800 - ldr r2, _080C8A10 @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet -_080C89F2: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8A14 - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C8A18 - .align 2, 0 -_080C8A04: .4byte gBG0TilemapBuffer -_080C8A08: .4byte gBG1TilemapBuffer -_080C8A0C: .4byte 0x0600D800 -_080C8A10: .4byte 0x01000400 -_080C8A14: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C8A18: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8934 - - THUMB_FUNC_START sub_80C8A20 -sub_80C8A20: @ 0x080C8A20 - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - cmp r0, #2 - beq _080C8A90 - cmp r0, #2 - bgt _080C8A5E - cmp r0, #1 - beq _080C8A64 - b _080C8ADE -_080C8A5E: - cmp r0, #3 - beq _080C8AC0 - b _080C8ADE -_080C8A64: - ldr r4, _080C8A84 @ Img_OpAnimMyrrh - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8A88 @ Tsa_OpAnimMyrrh2 - ldr r1, _080C8A8C @ gGenericBuffer - bl Decompress - b _080C8ADE - .align 2, 0 -_080C8A84: .4byte Img_OpAnimMyrrh -_080C8A88: .4byte Tsa_OpAnimMyrrh2 -_080C8A8C: .4byte gGenericBuffer -_080C8A90: - ldr r4, _080C8AB0 @ Img_OpAnimMyrrh2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C8AB4 @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8AB8 @ gUnknown_08AD543C - ldr r1, _080C8ABC @ gGenericBuffer+0x800 - bl Decompress - b _080C8ADE - .align 2, 0 -_080C8AB0: .4byte Img_OpAnimMyrrh2 -_080C8AB4: .4byte 0x06002000 -_080C8AB8: .4byte gUnknown_08AD543C -_080C8ABC: .4byte gGenericBuffer+0x800 -_080C8AC0: - ldr r0, _080C8AF0 @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C8AF4 @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C8AF8 @ 0x0600D800 - ldr r2, _080C8AFC @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet -_080C8ADE: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8B00 - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C8B04 - .align 2, 0 -_080C8AF0: .4byte gBG0TilemapBuffer -_080C8AF4: .4byte gBG1TilemapBuffer -_080C8AF8: .4byte 0x0600D800 -_080C8AFC: .4byte 0x01000400 -_080C8B00: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C8B04: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8A20 - - THUMB_FUNC_START sub_80C8B0C -sub_80C8B0C: @ 0x080C8B0C - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - cmp r0, #2 - beq _080C8B7C - cmp r0, #2 - bgt _080C8B4A - cmp r0, #1 - beq _080C8B50 - b _080C8BCA -_080C8B4A: - cmp r0, #3 - beq _080C8BAC - b _080C8BCA -_080C8B50: - ldr r4, _080C8B70 @ Img_OpAnimSaleh - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8B74 @ Tsa_OpAnimSaleh2 - ldr r1, _080C8B78 @ gGenericBuffer - bl Decompress - b _080C8BCA - .align 2, 0 -_080C8B70: .4byte Img_OpAnimSaleh -_080C8B74: .4byte Tsa_OpAnimSaleh2 -_080C8B78: .4byte gGenericBuffer -_080C8B7C: - ldr r4, _080C8B9C @ Img_OpAnimSaleh2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C8BA0 @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8BA4 @ gUnknown_08AD88D4 - ldr r1, _080C8BA8 @ gGenericBuffer+0x800 - bl Decompress - b _080C8BCA - .align 2, 0 -_080C8B9C: .4byte Img_OpAnimSaleh2 -_080C8BA0: .4byte 0x06002000 -_080C8BA4: .4byte gUnknown_08AD88D4 -_080C8BA8: .4byte gGenericBuffer+0x800 -_080C8BAC: - ldr r0, _080C8BDC @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C8BE0 @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C8BE4 @ 0x0600D800 - ldr r2, _080C8BE8 @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet -_080C8BCA: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8BEC - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C8BF0 - .align 2, 0 -_080C8BDC: .4byte gBG0TilemapBuffer -_080C8BE0: .4byte gBG1TilemapBuffer -_080C8BE4: .4byte 0x0600D800 -_080C8BE8: .4byte 0x01000400 -_080C8BEC: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C8BF0: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8B0C - - THUMB_FUNC_START sub_80C8BF8 -sub_80C8BF8: @ 0x080C8BF8 - push {r4, r5, lr} - sub sp, #8 - adds r5, r0, #0 - ldrh r0, [r5, #0x38] - ldrh r1, [r5, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r5, #0x38] - strh r0, [r5, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r5, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r5, #0x38] - ldrh r0, [r5, #0x3c] - adds r0, #1 - strh r0, [r5, #0x3c] - ldrh r0, [r5, #0x2a] - cmp r0, #2 - beq _080C8C68 - cmp r0, #2 - bgt _080C8C36 - cmp r0, #1 - beq _080C8C3C - b _080C8CB6 -_080C8C36: - cmp r0, #3 - beq _080C8C98 - b _080C8CB6 -_080C8C3C: - ldr r4, _080C8C5C @ Img_OpAnimTethys - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8C60 @ Tsa_OpAnimTethys - ldr r1, _080C8C64 @ gGenericBuffer - bl Decompress - b _080C8CB6 - .align 2, 0 -_080C8C5C: .4byte Img_OpAnimTethys -_080C8C60: .4byte Tsa_OpAnimTethys -_080C8C64: .4byte gGenericBuffer -_080C8C68: - ldr r4, _080C8C88 @ Img_OpAnimTethys2 - movs r0, #0 - bl GetBackgroundTileDataOffset - adds r1, r0, #0 - ldr r0, _080C8C8C @ 0x06002000 - adds r1, r1, r0 - adds r0, r4, #0 - bl Decompress - ldr r0, _080C8C90 @ gUnknown_08ADBC0C - ldr r1, _080C8C94 @ gGenericBuffer+0x800 - bl Decompress - b _080C8CB6 - .align 2, 0 -_080C8C88: .4byte Img_OpAnimTethys2 -_080C8C8C: .4byte 0x06002000 -_080C8C90: .4byte gUnknown_08ADBC0C -_080C8C94: .4byte gGenericBuffer+0x800 -_080C8C98: - ldr r0, _080C8CC8 @ gBG0TilemapBuffer - movs r1, #0 - bl BG_Fill - ldr r0, _080C8CCC @ gBG1TilemapBuffer - movs r1, #0 - bl BG_Fill - movs r0, #0 - str r0, [sp, #4] - ldr r1, _080C8CD0 @ 0x0600D800 - ldr r2, _080C8CD4 @ 0x01000400 - add r0, sp, #4 - bl CpuFastSet -_080C8CB6: - ldrh r0, [r5, #0x2a] - cmp r0, #0x28 - bne _080C8CD8 - movs r0, #0 - strh r0, [r5, #0x2a] - adds r0, r5, #0 - bl Proc_Break - b _080C8CDC - .align 2, 0 -_080C8CC8: .4byte gBG0TilemapBuffer -_080C8CCC: .4byte gBG1TilemapBuffer -_080C8CD0: .4byte 0x0600D800 -_080C8CD4: .4byte 0x01000400 -_080C8CD8: - adds r0, #1 - strh r0, [r5, #0x2a] -_080C8CDC: - add sp, #8 - pop {r4, r5} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8BF8 - - THUMB_FUNC_START sub_80C8CE4 -sub_80C8CE4: @ 0x080C8CE4 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x38] - ldrh r1, [r4, #0x3a] - bl OpAnim1_UpdateScroll - ldrh r0, [r4, #0x38] - strh r0, [r4, #0x3a] - movs r2, #0x9c - lsls r2, r2, #2 - ldrh r3, [r4, #0x3c] - movs r0, #0x86 - lsls r0, r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - bl Interpolate - strh r0, [r4, #0x38] - ldrh r0, [r4, #0x3c] - adds r0, #1 - strh r0, [r4, #0x3c] - ldrh r0, [r4, #0x2a] - cmp r0, #0x28 - bne _080C8D24 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C8D28 -_080C8D24: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C8D28: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8CE4 - - THUMB_FUNC_START sub_80C8D30 -sub_80C8D30: @ 0x080C8D30 - push {r4, r5, r6, r7, lr} - sub sp, #4 - adds r7, r0, #0 - ldrh r0, [r7, #0x3e] - movs r1, #0x4c - bl DivRem - adds r4, r0, #0 - movs r0, #0x4c - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - adds r3, r4, #0 - bl Interpolate - adds r4, r0, #0 - cmp r4, #0xc - bgt _080C8D66 - lsls r1, r4, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C8D78 -_080C8D66: - movs r1, #0x19 - subs r1, r1, r4 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C8D78: - ldrh r0, [r7, #0x3e] - adds r0, #1 - strh r0, [r7, #0x3e] - ldr r0, _080C8DC4 @ pal_08B103D8 - movs r2, #0x80 - lsls r2, r2, #1 - movs r1, #0 - bl CopyToPalOpAnim - ldrh r3, [r7, #0x2a] - movs r0, #0x26 - str r0, [sp] - movs r0, #0 - movs r1, #0xc - movs r2, #0 - bl Interpolate - ldr r5, _080C8DC8 @ gPaletteBuffer - lsls r6, r0, #0x10 - movs r4, #7 -_080C8DA0: - adds r0, r5, #0 - movs r1, #0 - lsrs r2, r6, #0x10 - bl sub_80C69B0 - adds r5, #0x20 - subs r4, #1 - cmp r4, #0 - bge _080C8DA0 - ldrh r0, [r7, #0x2a] - subs r0, #1 - cmp r0, #4 - bhi _080C8EA0 - lsls r0, r0, #2 - ldr r1, _080C8DCC @ _080C8DD0 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080C8DC4: .4byte pal_08B103D8 -_080C8DC8: .4byte gPaletteBuffer -_080C8DCC: .4byte _080C8DD0 -_080C8DD0: @ jump table - .4byte _080C8EA0 @ case 0 - .4byte _080C8DE4 @ case 1 - .4byte _080C8E1C @ case 2 - .4byte _080C8E50 @ case 3 - .4byte _080C8E84 @ case 4 -_080C8DE4: - ldr r4, _080C8E18 @ gUnknown_08ADBE78 - movs r1, #0x88 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #0x20 - bl CopyToPalOpAnim - movs r1, #0x98 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #0x20 - bl CopyToPalOpAnim - movs r1, #0xa8 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #0x20 - bl CopyToPalOpAnim - movs r1, #0xb8 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #0x20 - bl CopyToPalOpAnim - b _080C8EA0 - .align 2, 0 -_080C8E18: .4byte gUnknown_08ADBE78 -_080C8E1C: - ldr r0, _080C8E3C @ gUnknown_08ADBE98 - ldr r1, _080C8E40 @ 0x06010000 - bl Decompress - ldr r0, _080C8E44 @ gUnknown_08ADC708 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8E48 @ gUnknown_08ADC3C0 - ldr r1, _080C8E4C @ 0x06010F00 - bl Decompress - b _080C8EA0 - .align 2, 0 -_080C8E3C: .4byte gUnknown_08ADBE98 -_080C8E40: .4byte 0x06010000 -_080C8E44: .4byte gUnknown_08ADC708 -_080C8E48: .4byte gUnknown_08ADC3C0 -_080C8E4C: .4byte 0x06010F00 -_080C8E50: - ldr r0, _080C8E70 @ gUnknown_08ADC728 - ldr r1, _080C8E74 @ 0x06011E00 - bl Decompress - ldr r0, _080C8E78 @ gUnknown_08ADD050 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8E7C @ gUnknown_08ADCCB8 - ldr r1, _080C8E80 @ 0x06012D00 - bl Decompress - b _080C8EA0 - .align 2, 0 -_080C8E70: .4byte gUnknown_08ADC728 -_080C8E74: .4byte 0x06011E00 -_080C8E78: .4byte gUnknown_08ADD050 -_080C8E7C: .4byte gUnknown_08ADCCB8 -_080C8E80: .4byte 0x06012D00 -_080C8E84: - ldr r0, _080C8EB4 @ gUnknown_08ADD070 - ldr r1, _080C8EB8 @ 0x06013C00 - bl Decompress - ldr r0, _080C8EBC @ gUnknown_08ADDA54 - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8EC0 @ gUnknown_08ADD6EC - ldr r1, _080C8EC4 @ 0x06014B00 - bl Decompress -_080C8EA0: - ldrh r0, [r7, #0x2a] - cmp r0, #0x26 - bne _080C8EC8 - movs r0, #0 - strh r0, [r7, #0x2a] - adds r0, r7, #0 - bl Proc_Break - b _080C8ECC - .align 2, 0 -_080C8EB4: .4byte gUnknown_08ADD070 -_080C8EB8: .4byte 0x06013C00 -_080C8EBC: .4byte gUnknown_08ADDA54 -_080C8EC0: .4byte gUnknown_08ADD6EC -_080C8EC4: .4byte 0x06014B00 -_080C8EC8: - adds r0, #1 - strh r0, [r7, #0x2a] -_080C8ECC: - add sp, #4 - pop {r4, r5, r6, r7} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8D30 - - THUMB_FUNC_START sub_80C8ED4 -sub_80C8ED4: @ 0x080C8ED4 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #0x12 - bl DivRem - adds r3, r0, #0 - movs r0, #0x12 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C8F08 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C8F1A -_080C8F08: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C8F1A: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C8F6C - cmp r0, #2 - bgt _080C8F30 - cmp r0, #1 - beq _080C8F3A - b _080C8FF0 -_080C8F30: - cmp r0, #3 - beq _080C8FA0 - cmp r0, #4 - beq _080C8FD4 - b _080C8FF0 -_080C8F3A: - ldr r0, _080C8F58 @ gUnknown_08ADDA74 - ldr r1, _080C8F5C @ 0x06010000 - bl Decompress - ldr r0, _080C8F60 @ gUnknown_08ADE47C - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8F64 @ gUnknown_08ADE080 - ldr r1, _080C8F68 @ 0x06010F00 - bl Decompress - b _080C8FF0 - .align 2, 0 -_080C8F58: .4byte gUnknown_08ADDA74 -_080C8F5C: .4byte 0x06010000 -_080C8F60: .4byte gUnknown_08ADE47C -_080C8F64: .4byte gUnknown_08ADE080 -_080C8F68: .4byte 0x06010F00 -_080C8F6C: - ldr r0, _080C8F8C @ gUnknown_08ADEEF4 - ldr r1, _080C8F90 @ 0x06011E00 - bl Decompress - ldr r0, _080C8F94 @ gUnknown_08ADFA08 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8F98 @ gUnknown_08ADF58C - ldr r1, _080C8F9C @ 0x06012D00 - bl Decompress - b _080C8FF0 - .align 2, 0 -_080C8F8C: .4byte gUnknown_08ADEEF4 -_080C8F90: .4byte 0x06011E00 -_080C8F94: .4byte gUnknown_08ADFA08 -_080C8F98: .4byte gUnknown_08ADF58C -_080C8F9C: .4byte 0x06012D00 -_080C8FA0: - ldr r0, _080C8FC0 @ gUnknown_08ADE49C - ldr r1, _080C8FC4 @ 0x06013C00 - bl Decompress - ldr r0, _080C8FC8 @ gUnknown_08ADEED4 - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C8FCC @ gUnknown_08ADEB1C - ldr r1, _080C8FD0 @ 0x06014B00 - bl Decompress - b _080C8FF0 - .align 2, 0 -_080C8FC0: .4byte gUnknown_08ADE49C -_080C8FC4: .4byte 0x06013C00 -_080C8FC8: .4byte gUnknown_08ADEED4 -_080C8FCC: .4byte gUnknown_08ADEB1C -_080C8FD0: .4byte 0x06014B00 -_080C8FD4: - ldr r0, _080C9004 @ gUnknown_08ADFA28 - ldr r1, _080C9008 @ 0x06015A00 - bl Decompress - ldr r0, _080C900C @ gUnknown_08AE04D4 - movs r1, #0xb0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9010 @ gUnknown_08AE00E4 - ldr r1, _080C9014 @ 0x06016900 - bl Decompress -_080C8FF0: - ldrh r0, [r4, #0x2a] - cmp r0, #7 - bne _080C9018 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C901C - .align 2, 0 -_080C9004: .4byte gUnknown_08ADFA28 -_080C9008: .4byte 0x06015A00 -_080C900C: .4byte gUnknown_08AE04D4 -_080C9010: .4byte gUnknown_08AE00E4 -_080C9014: .4byte 0x06016900 -_080C9018: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C901C: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C8ED4 - - THUMB_FUNC_START sub_80C9024 -sub_80C9024: @ 0x080C9024 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #0xe - bl DivRem - adds r3, r0, #0 - movs r0, #0xe - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9058 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C906A -_080C9058: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C906A: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #1 - beq _080C907C - cmp r0, #2 - beq _080C90B0 - b _080C90CC -_080C907C: - ldr r0, _080C909C @ gUnknown_08AE04F4 - ldr r1, _080C90A0 @ 0x06010000 - bl Decompress - ldr r0, _080C90A4 @ Pal_OpAnimFaceVanessaShadow - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C90A8 @ gUnknown_08AE0A48 - ldr r1, _080C90AC @ 0x06010F00 - bl Decompress - b _080C90CC - .align 2, 0 -_080C909C: .4byte gUnknown_08AE04F4 -_080C90A0: .4byte 0x06010000 -_080C90A4: .4byte Pal_OpAnimFaceVanessaShadow -_080C90A8: .4byte gUnknown_08AE0A48 -_080C90AC: .4byte 0x06010F00 -_080C90B0: - ldr r0, _080C90E0 @ gUnknown_08AE0D94 - ldr r1, _080C90E4 @ 0x06011E00 - bl Decompress - ldr r0, _080C90E8 @ gUnknown_08AE1634 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C90EC @ gUnknown_08AE12BC - ldr r1, _080C90F0 @ 0x06012D00 - bl Decompress -_080C90CC: - ldrh r0, [r4, #0x2a] - cmp r0, #8 - bne _080C90F4 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C90F8 - .align 2, 0 -_080C90E0: .4byte gUnknown_08AE0D94 -_080C90E4: .4byte 0x06011E00 -_080C90E8: .4byte gUnknown_08AE1634 -_080C90EC: .4byte gUnknown_08AE12BC -_080C90F0: .4byte 0x06012D00 -_080C90F4: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C90F8: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9024 - - THUMB_FUNC_START sub_80C9100 -sub_80C9100: @ 0x080C9100 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #0xc - bl DivRem - adds r3, r0, #0 - movs r0, #0xc - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9134 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C9146 -_080C9134: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C9146: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C9194 - cmp r0, #2 - bgt _080C915C - cmp r0, #1 - beq _080C9162 - b _080C91E4 -_080C915C: - cmp r0, #3 - beq _080C91C8 - b _080C91E4 -_080C9162: - ldr r0, _080C9180 @ Img_OpAnimFaceVanessa - ldr r1, _080C9184 @ 0x06010000 - bl Decompress - ldr r0, _080C9188 @ Pal_OpAnimFaceVanessa - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C918C @ Img_OpAnimFaceVanessaShadow - ldr r1, _080C9190 @ 0x06010F00 - bl Decompress - b _080C91E4 - .align 2, 0 -_080C9180: .4byte Img_OpAnimFaceVanessa -_080C9184: .4byte 0x06010000 -_080C9188: .4byte Pal_OpAnimFaceVanessa -_080C918C: .4byte Img_OpAnimFaceVanessaShadow -_080C9190: .4byte 0x06010F00 -_080C9194: - ldr r0, _080C91B4 @ gUnknown_08AE20E4 - ldr r1, _080C91B8 @ 0x06011E00 - bl Decompress - ldr r0, _080C91BC @ gUnknown_08AE2BF4 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C91C0 @ gUnknown_08AE281C - ldr r1, _080C91C4 @ 0x06012D00 - bl Decompress - b _080C91E4 - .align 2, 0 -_080C91B4: .4byte gUnknown_08AE20E4 -_080C91B8: .4byte 0x06011E00 -_080C91BC: .4byte gUnknown_08AE2BF4 -_080C91C0: .4byte gUnknown_08AE281C -_080C91C4: .4byte 0x06012D00 -_080C91C8: - ldr r0, _080C91F8 @ gUnknown_08AE2C14 - ldr r1, _080C91FC @ 0x06013C00 - bl Decompress - ldr r0, _080C9200 @ gUnknown_08AE3734 - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9204 @ gUnknown_08AE33D4 - ldr r1, _080C9208 @ 0x06014B00 - bl Decompress -_080C91E4: - ldrh r0, [r4, #0x2a] - cmp r0, #9 - bne _080C920C - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9210 - .align 2, 0 -_080C91F8: .4byte gUnknown_08AE2C14 -_080C91FC: .4byte 0x06013C00 -_080C9200: .4byte gUnknown_08AE3734 -_080C9204: .4byte gUnknown_08AE33D4 -_080C9208: .4byte 0x06014B00 -_080C920C: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9210: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9100 - - THUMB_FUNC_START sub_80C9218 -sub_80C9218: @ 0x080C9218 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #0xa - bl DivRem - adds r3, r0, #0 - movs r0, #0xa - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C924C - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C925E -_080C924C: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C925E: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C92AC - cmp r0, #2 - bgt _080C9274 - cmp r0, #1 - beq _080C927A - b _080C92FC -_080C9274: - cmp r0, #3 - beq _080C92E0 - b _080C92FC -_080C927A: - ldr r0, _080C9298 @ gUnknown_08AE3754 - ldr r1, _080C929C @ 0x06010000 - bl Decompress - ldr r0, _080C92A0 @ gUnknown_08AE41E4 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C92A4 @ gUnknown_08AE3E54 - ldr r1, _080C92A8 @ 0x06010F00 - bl Decompress - b _080C92FC - .align 2, 0 -_080C9298: .4byte gUnknown_08AE3754 -_080C929C: .4byte 0x06010000 -_080C92A0: .4byte gUnknown_08AE41E4 -_080C92A4: .4byte gUnknown_08AE3E54 -_080C92A8: .4byte 0x06010F00 -_080C92AC: - ldr r0, _080C92CC @ gUnknown_08AE4204 - ldr r1, _080C92D0 @ 0x06011E00 - bl Decompress - ldr r0, _080C92D4 @ gUnknown_08AE4CE8 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C92D8 @ gUnknown_08AE4940 - ldr r1, _080C92DC @ 0x06012D00 - bl Decompress - b _080C92FC - .align 2, 0 -_080C92CC: .4byte gUnknown_08AE4204 -_080C92D0: .4byte 0x06011E00 -_080C92D4: .4byte gUnknown_08AE4CE8 -_080C92D8: .4byte gUnknown_08AE4940 -_080C92DC: .4byte 0x06012D00 -_080C92E0: - ldr r0, _080C9310 @ gUnknown_08AE4D08 - ldr r1, _080C9314 @ 0x06013C00 - bl Decompress - ldr r0, _080C9318 @ gUnknown_08AE5730 - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C931C @ gUnknown_08AE53C8 - ldr r1, _080C9320 @ 0x06014B00 - bl Decompress -_080C92FC: - ldrh r0, [r4, #0x2a] - cmp r0, #0xa - bne _080C9324 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9328 - .align 2, 0 -_080C9310: .4byte gUnknown_08AE4D08 -_080C9314: .4byte 0x06013C00 -_080C9318: .4byte gUnknown_08AE5730 -_080C931C: .4byte gUnknown_08AE53C8 -_080C9320: .4byte 0x06014B00 -_080C9324: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9328: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9218 - - THUMB_FUNC_START sub_80C9330 -sub_80C9330: @ 0x080C9330 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #9 - bl DivRem - adds r3, r0, #0 - movs r0, #9 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9364 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C9376 -_080C9364: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C9376: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #1 - beq _080C9388 - cmp r0, #2 - beq _080C93BC - b _080C93D8 -_080C9388: - ldr r0, _080C93A8 @ gUnknown_08AE5750 - ldr r1, _080C93AC @ 0x06010000 - bl Decompress - ldr r0, _080C93B0 @ gUnknown_08AE60B0 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C93B4 @ gUnknown_08AE5D54 - ldr r1, _080C93B8 @ 0x06010F00 - bl Decompress - b _080C93D8 - .align 2, 0 -_080C93A8: .4byte gUnknown_08AE5750 -_080C93AC: .4byte 0x06010000 -_080C93B0: .4byte gUnknown_08AE60B0 -_080C93B4: .4byte gUnknown_08AE5D54 -_080C93B8: .4byte 0x06010F00 -_080C93BC: - ldr r0, _080C93EC @ gUnknown_08AE60D0 - ldr r1, _080C93F0 @ 0x06011E00 - bl Decompress - ldr r0, _080C93F4 @ gUnknown_08AE69EC - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C93F8 @ gUnknown_08AE6648 - ldr r1, _080C93FC @ 0x06012D00 - bl Decompress -_080C93D8: - ldrh r0, [r4, #0x2a] - cmp r0, #0xb - bne _080C9400 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9404 - .align 2, 0 -_080C93EC: .4byte gUnknown_08AE60D0 -_080C93F0: .4byte 0x06011E00 -_080C93F4: .4byte gUnknown_08AE69EC -_080C93F8: .4byte gUnknown_08AE6648 -_080C93FC: .4byte 0x06012D00 -_080C9400: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9404: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9330 - - THUMB_FUNC_START sub_80C940C -sub_80C940C: @ 0x080C940C - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #8 - bl DivRem - adds r3, r0, #0 - movs r0, #8 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9440 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C9452 -_080C9440: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C9452: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C94A4 - cmp r0, #2 - bgt _080C9468 - cmp r0, #1 - beq _080C9472 - b _080C9528 -_080C9468: - cmp r0, #3 - beq _080C94D8 - cmp r0, #4 - beq _080C950C - b _080C9528 -_080C9472: - ldr r0, _080C9490 @ gUnknown_08AE6A0C - ldr r1, _080C9494 @ 0x06010000 - bl Decompress - ldr r0, _080C9498 @ gUnknown_08AE72C8 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C949C @ gUnknown_08AE6FA8 - ldr r1, _080C94A0 @ 0x06010F00 - bl Decompress - b _080C9528 - .align 2, 0 -_080C9490: .4byte gUnknown_08AE6A0C -_080C9494: .4byte 0x06010000 -_080C9498: .4byte gUnknown_08AE72C8 -_080C949C: .4byte gUnknown_08AE6FA8 -_080C94A0: .4byte 0x06010F00 -_080C94A4: - ldr r0, _080C94C4 @ gUnknown_08AE84DC - ldr r1, _080C94C8 @ 0x06011E00 - bl Decompress - ldr r0, _080C94CC @ gUnknown_08AE8D84 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C94D0 @ gUnknown_08AE8AB8 - ldr r1, _080C94D4 @ 0x06012D00 - bl Decompress - b _080C9528 - .align 2, 0 -_080C94C4: .4byte gUnknown_08AE84DC -_080C94C8: .4byte 0x06011E00 -_080C94CC: .4byte gUnknown_08AE8D84 -_080C94D0: .4byte gUnknown_08AE8AB8 -_080C94D4: .4byte 0x06012D00 -_080C94D8: - ldr r0, _080C94F8 @ gUnknown_08AE72E8 - ldr r1, _080C94FC @ 0x06013C00 - bl Decompress - ldr r0, _080C9500 @ gUnknown_08AE7C2C - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9504 @ gUnknown_08AE78B0 - ldr r1, _080C9508 @ 0x06014B00 - bl Decompress - b _080C9528 - .align 2, 0 -_080C94F8: .4byte gUnknown_08AE72E8 -_080C94FC: .4byte 0x06013C00 -_080C9500: .4byte gUnknown_08AE7C2C -_080C9504: .4byte gUnknown_08AE78B0 -_080C9508: .4byte 0x06014B00 -_080C950C: - ldr r0, _080C953C @ gUnknown_08AE7C4C - ldr r1, _080C9540 @ 0x06015A00 - bl Decompress - ldr r0, _080C9544 @ gUnknown_08AE84BC - movs r1, #0xb0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9548 @ gUnknown_08AE819C - ldr r1, _080C954C @ 0x06016900 - bl Decompress -_080C9528: - ldrh r0, [r4, #0x2a] - cmp r0, #0xc - bne _080C9550 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9554 - .align 2, 0 -_080C953C: .4byte gUnknown_08AE7C4C -_080C9540: .4byte 0x06015A00 -_080C9544: .4byte gUnknown_08AE84BC -_080C9548: .4byte gUnknown_08AE819C -_080C954C: .4byte 0x06016900 -_080C9550: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9554: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C940C - - THUMB_FUNC_START sub_80C955C -sub_80C955C: @ 0x080C955C - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #7 - bl DivRem - adds r3, r0, #0 - movs r0, #7 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9590 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C95A2 -_080C9590: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C95A2: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #1 - beq _080C95B4 - cmp r0, #2 - beq _080C95E8 - b _080C9604 -_080C95B4: - ldr r0, _080C95D4 @ gUnknown_08AE8DA4 - ldr r1, _080C95D8 @ 0x06010000 - bl Decompress - ldr r0, _080C95DC @ gUnknown_08AE9720 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C95E0 @ gUnknown_08AE9364 - ldr r1, _080C95E4 @ 0x06010F00 - bl Decompress - b _080C9604 - .align 2, 0 -_080C95D4: .4byte gUnknown_08AE8DA4 -_080C95D8: .4byte 0x06010000 -_080C95DC: .4byte gUnknown_08AE9720 -_080C95E0: .4byte gUnknown_08AE9364 -_080C95E4: .4byte 0x06010F00 -_080C95E8: - ldr r0, _080C9618 @ gUnknown_08AE9740 - ldr r1, _080C961C @ 0x06011E00 - bl Decompress - ldr r0, _080C9620 @ gUnknown_08AEA02C - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9624 @ gUnknown_08AE9CA4 - ldr r1, _080C9628 @ 0x06012D00 - bl Decompress -_080C9604: - ldrh r0, [r4, #0x2a] - cmp r0, #0xd - bne _080C962C - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9630 - .align 2, 0 -_080C9618: .4byte gUnknown_08AE9740 -_080C961C: .4byte 0x06011E00 -_080C9620: .4byte gUnknown_08AEA02C -_080C9624: .4byte gUnknown_08AE9CA4 -_080C9628: .4byte 0x06012D00 -_080C962C: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9630: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C955C - - THUMB_FUNC_START sub_80C9638 -sub_80C9638: @ 0x080C9638 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #6 - bl DivRem - adds r3, r0, #0 - movs r0, #6 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C966C - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C967E -_080C966C: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C967E: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C96CC - cmp r0, #2 - bgt _080C9694 - cmp r0, #1 - beq _080C969A - b _080C971C -_080C9694: - cmp r0, #3 - beq _080C9700 - b _080C971C -_080C969A: - ldr r0, _080C96B8 @ gUnknown_08AECAE0 - ldr r1, _080C96BC @ 0x06010000 - bl Decompress - ldr r0, _080C96C0 @ gUnknown_08AED3E8 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C96C4 @ gUnknown_08AED0A4 - ldr r1, _080C96C8 @ 0x06010F00 - bl Decompress - b _080C971C - .align 2, 0 -_080C96B8: .4byte gUnknown_08AECAE0 -_080C96BC: .4byte 0x06010000 -_080C96C0: .4byte gUnknown_08AED3E8 -_080C96C4: .4byte gUnknown_08AED0A4 -_080C96C8: .4byte 0x06010F00 -_080C96CC: - ldr r0, _080C96EC @ gUnknown_08AED408 - ldr r1, _080C96F0 @ 0x06011E00 - bl Decompress - ldr r0, _080C96F4 @ gUnknown_08AEDC80 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C96F8 @ gUnknown_08AED95C - ldr r1, _080C96FC @ 0x06012D00 - bl Decompress - b _080C971C - .align 2, 0 -_080C96EC: .4byte gUnknown_08AED408 -_080C96F0: .4byte 0x06011E00 -_080C96F4: .4byte gUnknown_08AEDC80 -_080C96F8: .4byte gUnknown_08AED95C -_080C96FC: .4byte 0x06012D00 -_080C9700: - ldr r0, _080C9730 @ gUnknown_08AEDCA0 - ldr r1, _080C9734 @ 0x06013C00 - bl Decompress - ldr r0, _080C9738 @ gUnknown_08AEE564 - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C973C @ gUnknown_08AEE218 - ldr r1, _080C9740 @ 0x06014B00 - bl Decompress -_080C971C: - ldrh r0, [r4, #0x2a] - cmp r0, #0xe - bne _080C9744 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9748 - .align 2, 0 -_080C9730: .4byte gUnknown_08AEDCA0 -_080C9734: .4byte 0x06013C00 -_080C9738: .4byte gUnknown_08AEE564 -_080C973C: .4byte gUnknown_08AEE218 -_080C9740: .4byte 0x06014B00 -_080C9744: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9748: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9638 - - THUMB_FUNC_START sub_80C9750 -sub_80C9750: @ 0x080C9750 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #5 - bl DivRem - adds r3, r0, #0 - movs r0, #5 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C9784 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C9796 -_080C9784: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C9796: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C97E8 - cmp r0, #2 - bgt _080C97AC - cmp r0, #1 - beq _080C97B6 - b _080C986C -_080C97AC: - cmp r0, #3 - beq _080C981C - cmp r0, #4 - beq _080C9850 - b _080C986C -_080C97B6: - ldr r0, _080C97D4 @ gUnknown_08AEA04C - ldr r1, _080C97D8 @ 0x06010000 - bl Decompress - ldr r0, _080C97DC @ gUnknown_08AEAB50 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C97E0 @ gUnknown_08AEA7A8 - ldr r1, _080C97E4 @ 0x06010F00 - bl Decompress - b _080C986C - .align 2, 0 -_080C97D4: .4byte gUnknown_08AEA04C -_080C97D8: .4byte 0x06010000 -_080C97DC: .4byte gUnknown_08AEAB50 -_080C97E0: .4byte gUnknown_08AEA7A8 -_080C97E4: .4byte 0x06010F00 -_080C97E8: - ldr r0, _080C9808 @ gUnknown_08AEAB70 - ldr r1, _080C980C @ 0x06011E00 - bl Decompress - ldr r0, _080C9810 @ gUnknown_08AEB56C - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9814 @ gUnknown_08AEB1B8 - ldr r1, _080C9818 @ 0x06012D00 - bl Decompress - b _080C986C - .align 2, 0 -_080C9808: .4byte gUnknown_08AEAB70 -_080C980C: .4byte 0x06011E00 -_080C9810: .4byte gUnknown_08AEB56C -_080C9814: .4byte gUnknown_08AEB1B8 -_080C9818: .4byte 0x06012D00 -_080C981C: - ldr r0, _080C983C @ gUnknown_08AEB58C - ldr r1, _080C9840 @ 0x06013C00 - bl Decompress - ldr r0, _080C9844 @ Pal_OpAnimFaceValterShadow - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9848 @ gUnknown_08AEBCEC - ldr r1, _080C984C @ 0x06014B00 - bl Decompress - b _080C986C - .align 2, 0 -_080C983C: .4byte gUnknown_08AEB58C -_080C9840: .4byte 0x06013C00 -_080C9844: .4byte Pal_OpAnimFaceValterShadow -_080C9848: .4byte gUnknown_08AEBCEC -_080C984C: .4byte 0x06014B00 -_080C9850: - ldr r0, _080C9880 @ gUnknown_08AEC068 - ldr r1, _080C9884 @ 0x06015A00 - bl Decompress - ldr r0, _080C9888 @ gUnknown_08AECAC0 - movs r1, #0xb0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C988C @ gUnknown_08AEC724 - ldr r1, _080C9890 @ 0x06016900 - bl Decompress -_080C986C: - ldrh r0, [r4, #0x2a] - cmp r0, #0xf - bne _080C9894 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9898 - .align 2, 0 -_080C9880: .4byte gUnknown_08AEC068 -_080C9884: .4byte 0x06015A00 -_080C9888: .4byte gUnknown_08AECAC0 -_080C988C: .4byte gUnknown_08AEC724 -_080C9890: .4byte 0x06016900 -_080C9894: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9898: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C9750 - - THUMB_FUNC_START sub_80C98A0 -sub_80C98A0: @ 0x080C98A0 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #4 - bl DivRem - adds r3, r0, #0 - movs r0, #4 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C98D4 - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C98E6 -_080C98D4: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C98E6: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #2 - beq _080C9934 - cmp r0, #2 - bgt _080C98FC - cmp r0, #1 - beq _080C9902 - b _080C9984 -_080C98FC: - cmp r0, #3 - beq _080C9968 - b _080C9984 -_080C9902: - ldr r0, _080C9920 @ Img_OpAnimFaceValter - ldr r1, _080C9924 @ 0x06010000 - bl Decompress - ldr r0, _080C9928 @ Pal_OpAnimFaceValter - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C992C @ Img_OpAnimFaceValterShadow - ldr r1, _080C9930 @ 0x06010F00 - bl Decompress - b _080C9984 - .align 2, 0 -_080C9920: .4byte Img_OpAnimFaceValter -_080C9924: .4byte 0x06010000 -_080C9928: .4byte Pal_OpAnimFaceValter -_080C992C: .4byte Img_OpAnimFaceValterShadow -_080C9930: .4byte 0x06010F00 -_080C9934: - ldr r0, _080C9954 @ gUnknown_08AEEEEC - ldr r1, _080C9958 @ 0x06011E00 - bl Decompress - ldr r0, _080C995C @ gUnknown_08AEF880 - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9960 @ gUnknown_08AEF580 - ldr r1, _080C9964 @ 0x06012D00 - bl Decompress - b _080C9984 - .align 2, 0 -_080C9954: .4byte gUnknown_08AEEEEC -_080C9958: .4byte 0x06011E00 -_080C995C: .4byte gUnknown_08AEF880 -_080C9960: .4byte gUnknown_08AEF580 -_080C9964: .4byte 0x06012D00 -_080C9968: - ldr r0, _080C9998 @ gUnknown_08AEF8A0 - ldr r1, _080C999C @ 0x06013C00 - bl Decompress - ldr r0, _080C99A0 @ Pal_OpAnimFaceVigardeShadow - movs r1, #0xa0 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C99A4 @ gUnknown_08AEFDC8 - ldr r1, _080C99A8 @ 0x06014B00 - bl Decompress -_080C9984: - ldrh r0, [r4, #0x2a] - cmp r0, #0x10 - bne _080C99AC - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C99B0 - .align 2, 0 -_080C9998: .4byte gUnknown_08AEF8A0 -_080C999C: .4byte 0x06013C00 -_080C99A0: .4byte Pal_OpAnimFaceVigardeShadow -_080C99A4: .4byte gUnknown_08AEFDC8 -_080C99A8: .4byte 0x06014B00 -_080C99AC: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C99B0: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C98A0 - - THUMB_FUNC_START sub_80C99B8 -sub_80C99B8: @ 0x080C99B8 - push {r4, lr} - sub sp, #4 - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - movs r1, #3 - bl DivRem - adds r3, r0, #0 - movs r0, #3 - str r0, [sp] - movs r0, #0 - movs r1, #0 - movs r2, #0x1a - bl Interpolate - adds r3, r0, #0 - cmp r3, #0xc - bgt _080C99EC - lsls r1, r3, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig - b _080C99FE -_080C99EC: - movs r1, #0x19 - subs r1, r1, r3 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - movs r0, #1 - movs r2, #0x10 - movs r3, #8 - bl SetBlendConfig -_080C99FE: - ldrh r0, [r4, #0x3e] - adds r0, #1 - strh r0, [r4, #0x3e] - ldrh r0, [r4, #0x2a] - cmp r0, #1 - beq _080C9A10 - cmp r0, #2 - beq _080C9A44 - b _080C9A60 -_080C9A10: - ldr r0, _080C9A30 @ gUnknown_08AF0150 - ldr r1, _080C9A34 @ 0x06010000 - bl Decompress - ldr r0, _080C9A38 @ gUnknown_08AF0DE8 - movs r1, #0x80 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9A3C @ gUnknown_08AF09E4 - ldr r1, _080C9A40 @ 0x06010F00 - bl Decompress - b _080C9A60 - .align 2, 0 -_080C9A30: .4byte gUnknown_08AF0150 -_080C9A34: .4byte 0x06010000 -_080C9A38: .4byte gUnknown_08AF0DE8 -_080C9A3C: .4byte gUnknown_08AF09E4 -_080C9A40: .4byte 0x06010F00 -_080C9A44: - ldr r0, _080C9A74 @ Img_OpAnimFaceVigarde - ldr r1, _080C9A78 @ 0x06011E00 - bl Decompress - ldr r0, _080C9A7C @ Pal_OpAnimFaceVigarde - movs r1, #0x90 - lsls r1, r1, #2 - movs r2, #0x20 - bl CopyToPalOpAnim - ldr r0, _080C9A80 @ Img_OpAnimFaceVigardeShadow - ldr r1, _080C9A84 @ 0x06012D00 - bl Decompress -_080C9A60: - ldrh r0, [r4, #0x2a] - cmp r0, #0x12 - bne _080C9A88 - movs r0, #0 - strh r0, [r4, #0x2a] - adds r0, r4, #0 - bl Proc_Break - b _080C9A8C - .align 2, 0 -_080C9A74: .4byte Img_OpAnimFaceVigarde -_080C9A78: .4byte 0x06011E00 -_080C9A7C: .4byte Pal_OpAnimFaceVigarde -_080C9A80: .4byte Img_OpAnimFaceVigardeShadow -_080C9A84: .4byte 0x06012D00 -_080C9A88: - adds r0, #1 - strh r0, [r4, #0x2a] -_080C9A8C: - add sp, #4 - pop {r4} - pop {r0} - bx r0 - - THUMB_FUNC_END sub_80C99B8 - THUMB_FUNC_START sub_80C9A94 sub_80C9A94: @ 0x080C9A94 push {r4, lr} diff --git a/include/opanim.h b/include/opanim.h index bd75530e..5d1dba78 100644 --- a/include/opanim.h +++ b/include/opanim.h @@ -48,8 +48,8 @@ struct ProcOpAnim { /* 36 */ u16 unk36; /* 38 */ u16 unk38; /* 3A */ u16 unk3A; - /* 3C */ s16 unk3C; - /* 3E */ s16 unk3E; + /* 3C */ u16 unk3C; + /* 3E */ u16 unk3E; /* 40 */ STRUCT_PAD(0x40, 0x46); /* 46 */ u8 unk46; /* 47 */ STRUCT_PAD(0x47, 0x4C); @@ -322,6 +322,170 @@ extern CONST_DATA u16 tsa_opanim99[]; extern CONST_DATA u16 tsa_opanim100[]; extern u16 pal_08B103D8[]; +extern u8 Img_OpAnimGenericCharacterBG[]; +extern u8 Tsa_OpAnimGenericCharacterBG[]; + +extern u8 Img_OpAnimJoshua[]; +extern u8 Img_OpAnimJoshua2[]; +extern u8 gUnknown_08ACC340[]; +extern u8 Tsa_OpAnimJoshua2[]; + +extern u8 Img_OpAnimShinningRing[]; +extern u8 Tsa_OpAnimShinningRing[]; + +extern struct ProcCmd gUnknown_08AA705C[]; +extern struct ProcCmd gUnknown_08AA707C[]; + +extern u8 Img_OpAnimTethys[]; +extern u8 Tsa_OpAnimTethys[]; + +extern u8 Img_OpAnimTethys2[]; +extern u8 gUnknown_08ADBC0C[]; + +extern u16 pal_08B103D8[]; + +extern u16 gUnknown_08ADBE78[]; + +extern u8 gUnknown_08ADBE98[]; +extern u16 gUnknown_08ADC708[]; +extern u8 gUnknown_08ADC3C0[]; + +extern u8 gUnknown_08ADC728[]; +extern u16 gUnknown_08ADD050[]; +extern u8 gUnknown_08ADCCB8[]; + +extern u8 gUnknown_08ADD070[]; +extern u16 gUnknown_08ADDA54[]; +extern u8 gUnknown_08ADD6EC[]; + +extern u8 gUnknown_08ADDA74[]; +extern u16 gUnknown_08ADE47C[]; +extern u8 gUnknown_08ADE080[]; + +extern u8 gUnknown_08ADEEF4[]; +extern u16 gUnknown_08ADFA08[]; +extern u8 gUnknown_08ADF58C[]; + +extern u8 gUnknown_08ADE49C[]; +extern u16 gUnknown_08ADEED4[]; +extern u8 gUnknown_08ADEB1C[]; + +extern u8 gUnknown_08ADFA28[]; +extern u16 gUnknown_08AE04D4[]; +extern u8 gUnknown_08AE00E4[]; + +extern u8 gUnknown_08AE04F4[]; +extern u16 Pal_OpAnimFaceVanessaShadow[]; +extern u8 gUnknown_08AE0A48[]; + +extern u8 gUnknown_08AE0D94[]; +extern u16 gUnknown_08AE1634[]; +extern u8 gUnknown_08AE12BC[]; + +extern u8 Img_OpAnimFaceVanessa[]; +extern u16 Pal_OpAnimFaceVanessa[]; +extern u8 Img_OpAnimFaceVanessaShadow[]; + +extern u8 gUnknown_08AE20E4[]; +extern u16 gUnknown_08AE2BF4[]; +extern u8 gUnknown_08AE281C[]; + +extern u8 gUnknown_08AE2C14[]; +extern u16 gUnknown_08AE3734[]; +extern u8 gUnknown_08AE33D4[]; + +extern u8 gUnknown_08AE3754[]; +extern u16 gUnknown_08AE41E4[]; +extern u8 gUnknown_08AE3E54[]; + +extern u8 gUnknown_08AE4204[]; +extern u16 gUnknown_08AE4CE8[]; +extern u8 gUnknown_08AE4940[]; + +extern u8 gUnknown_08AE4D08[]; +extern u16 gUnknown_08AE5730[]; +extern u8 gUnknown_08AE53C8[]; + +extern u8 gUnknown_08AE5750[]; +extern u16 gUnknown_08AE60B0[]; +extern u8 gUnknown_08AE5D54[]; + +extern u8 gUnknown_08AE60D0[]; +extern u16 gUnknown_08AE69EC[]; +extern u8 gUnknown_08AE6648[]; + +extern u8 gUnknown_08AE6A0C[]; +extern u16 gUnknown_08AE72C8[]; +extern u8 gUnknown_08AE6FA8[]; + +extern u8 gUnknown_08AE84DC[]; +extern u16 gUnknown_08AE8D84[]; +extern u8 gUnknown_08AE8AB8[]; + +extern u8 gUnknown_08AE72E8[]; +extern u16 gUnknown_08AE7C2C[]; +extern u8 gUnknown_08AE78B0[]; + +extern u8 gUnknown_08AE7C4C[]; +extern u16 gUnknown_08AE84BC[]; +extern u8 gUnknown_08AE819C[]; + +extern u8 gUnknown_08AE8DA4[]; +extern u16 gUnknown_08AE9720[]; +extern u8 gUnknown_08AE9364[]; + +extern u8 gUnknown_08AE9740[]; +extern u16 gUnknown_08AEA02C[]; +extern u8 gUnknown_08AE9CA4[]; + +extern u8 gUnknown_08AECAE0[]; +extern u16 gUnknown_08AED3E8[]; +extern u8 gUnknown_08AED0A4[]; + +extern u8 gUnknown_08AED408[]; +extern u16 gUnknown_08AEDC80[]; +extern u8 gUnknown_08AED95C[]; + +extern u8 gUnknown_08AEDCA0[]; +extern u16 gUnknown_08AEE564[]; +extern u8 gUnknown_08AEE218[]; + +extern u8 gUnknown_08AEA04C[]; +extern u16 gUnknown_08AEAB50[]; +extern u8 gUnknown_08AEA7A8[]; + +extern u8 gUnknown_08AEAB70[]; +extern u16 gUnknown_08AEB56C[]; +extern u8 gUnknown_08AEB1B8[]; + +extern u8 gUnknown_08AEB58C[]; +extern u16 Pal_OpAnimFaceValterShadow[]; +extern u8 gUnknown_08AEBCEC[]; + +extern u8 gUnknown_08AEC068[]; +extern u16 gUnknown_08AECAC0[]; +extern u8 gUnknown_08AEC724[]; + +extern u8 Img_OpAnimFaceValter[]; +extern u16 Pal_OpAnimFaceValter[]; +extern u8 Img_OpAnimFaceValterShadow[]; + +extern u8 gUnknown_08AEEEEC[]; +extern u16 gUnknown_08AEF880[]; +extern u8 gUnknown_08AEF580[]; + +extern u8 gUnknown_08AEF8A0[]; +extern u16 Pal_OpAnimFaceVigardeShadow[]; +extern u8 gUnknown_08AEFDC8[]; + +extern u8 gUnknown_08AF0150[]; +extern u16 gUnknown_08AF0DE8[]; +extern u8 gUnknown_08AF09E4[]; + +extern u8 Img_OpAnimFaceVigarde[]; +extern u16 Pal_OpAnimFaceVigarde[]; +extern u8 Img_OpAnimFaceVigardeShadow[]; + void OpAnimPutObjCommon(int ix, int iy, u8 a, u8 b); void OpAnimfxTerminatorMain(struct Proc * proc); void NewOpAnimfxTerminator(ProcPtr parent); diff --git a/src/opanim-main.c b/src/opanim-main.c index 9aae7e49..b51c94c3 100644 --- a/src/opanim-main.c +++ b/src/opanim-main.c @@ -1487,3 +1487,1017 @@ void sub_80C8684(void) SetDefaultColorEffects(); return; } + +//! FE8U = 0x080C8690 +void sub_80C8690(struct ProcOpAnim * proc) +{ + int i; + s16 * vram; + + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimGenericCharacterBG, (void *)(0x06002000 + GetBackgroundTileDataOffset(3))); + Decompress(Tsa_OpAnimGenericCharacterBG, gBG3TilemapBuffer); + + for (i = 0; i < 0x280; i++) + { + gBG3TilemapBuffer[i] = gBG3TilemapBuffer[i] + 0xe100; + } + + BG_EnableSyncByMask(BG3_SYNC_BIT); + + break; + + case 2: + Decompress(Img_OpAnimJoshua, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimJoshua2, gGenericBuffer); + + break; + + case 3: + Decompress(Img_OpAnimJoshua2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(gUnknown_08ACC340, gGenericBuffer + 0x800); + + break; + + case 4: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + + case 5: + Decompress(Img_OpAnimShinningRing, (void *)0x06004000); + + break; + + case 6: + Decompress(Tsa_OpAnimShinningRing, (void *)0x0600F000); + + vram = (void *)0x0600F000; + + for (i = 0; i < 0x280; i++, vram++) + { + *vram = *vram - 0x8000; + } + + break; + } + + if (proc->timer == 0x28) + { + Proc_EndEach(gUnknown_08AA705C); + Proc_EndEach(gUnknown_08AA707C); + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C883C +void sub_80C883C(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimLArachel, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimLArachel, gGenericBuffer); + + break; + + case 2: + Decompress(Img_OpAnimLArachel2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimLArachelLeft, gGenericBuffer + 0x800); + + break; + + case 3: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + } + + if (proc->timer == 0x28) + { + Proc_EndEach(gUnknown_08AA705C); + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8934 +void sub_80C8934(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimCharacterSeth, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimCharacterSeth, gGenericBuffer); + + break; + + case 2: + Decompress(Img_OpAnimCharacterSeth2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(gUnknown_08AD236C, gGenericBuffer + 0x800); + + break; + + case 3: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + } + + if (proc->timer == 0x28) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8A20 +void sub_80C8A20(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimMyrrh, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimMyrrh2, gGenericBuffer); + + break; + + case 2: + Decompress(Img_OpAnimMyrrh2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(gUnknown_08AD543C, gGenericBuffer + 0x800); + + break; + + case 3: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + } + + if (proc->timer == 0x28) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8B0C +void sub_80C8B0C(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimSaleh, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimSaleh2, gGenericBuffer); + + break; + + case 2: + Decompress(Img_OpAnimSaleh2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(gUnknown_08AD88D4, gGenericBuffer + 0x800); + + break; + + case 3: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + } + + if (proc->timer == 0x28) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8BF8 +void sub_80C8BF8(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimTethys, (void *)(0x6000000 + GetBackgroundTileDataOffset(0))); + Decompress(Tsa_OpAnimTethys, gGenericBuffer); + + break; + + case 2: + Decompress(Img_OpAnimTethys2, (void *)(0x06002000 + GetBackgroundTileDataOffset(0))); + Decompress(gUnknown_08ADBC0C, gGenericBuffer + 0x800); + + break; + + case 3: + BG_Fill(gBG0TilemapBuffer, 0); + BG_Fill(gBG1TilemapBuffer, 0); + + CpuFastFill(0, (void *)0x0600D800, 0x1000); + + break; + } + + if (proc->timer == 0x28) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8CE4 +void sub_80C8CE4(struct ProcOpAnim * proc) +{ + OpAnim1_UpdateScroll(proc->unk38, proc->unk3A); + proc->unk3A = proc->unk38; + + proc->unk38 = Interpolate(INTERPOLATE_LINEAR, 0, 0x270, proc->unk3C, 0x430); + proc->unk3C++; + + if (proc->timer == 0x28) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8D30 +void sub_80C8D30(struct ProcOpAnim * proc) +{ + int ret; + int i; + + i = DivRem(proc->unk3E, 0x4c); + i = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, i, 0x4c); + + if (i < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, i, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - i, 0x10, 8); + } + + proc->unk3E++; + + CopyToPalOpAnim(pal_08B103D8, 0, 0x100); + + ret = Interpolate(INTERPOLATE_LINEAR, 0xc, 0, proc->timer, 0x26); + + for (i = 0; i < 8; i++) + { + sub_80C69B0(gPaletteBuffer + i * 0x10, 0, ret); + } + + switch (proc->timer) + { + case 1: + break; + + case 2: + CopyToPalOpAnim(gUnknown_08ADBE78, 0x220, 0x20); + CopyToPalOpAnim(gUnknown_08ADBE78, 0x260, 0x20); + CopyToPalOpAnim(gUnknown_08ADBE78, 0x2a0, 0x20); + CopyToPalOpAnim(gUnknown_08ADBE78, 0x2e0, 0x20); + + break; + + case 3: + Decompress(gUnknown_08ADBE98, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08ADC708, 0x200, 0x20); + Decompress(gUnknown_08ADC3C0, (void *)0x06010F00); + + break; + + case 4: + Decompress(gUnknown_08ADC728, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08ADD050, 0x240, 0x20); + Decompress(gUnknown_08ADCCB8, (void *)0x06012D00); + + break; + + case 5: + Decompress(gUnknown_08ADD070, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08ADDA54, 0x280, 0x20); + Decompress(gUnknown_08ADD6EC, (void *)0x06014B00); + + break; + } + + if (proc->timer == 0x26) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C8ED4 +void sub_80C8ED4(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 0x12); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 0x12); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08ADDA74, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08ADE47C, 0x200, 0x20); + Decompress(gUnknown_08ADE080, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08ADEEF4, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08ADFA08, 0x240, 0x20); + Decompress(gUnknown_08ADF58C, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08ADE49C, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08ADEED4, 0x280, 0x20); + Decompress(gUnknown_08ADEB1C, (void *)0x06014B00); + + break; + + case 4: + Decompress(gUnknown_08ADFA28, (void *)0x06015A00); + CopyToPalOpAnim(gUnknown_08AE04D4, 0x2c0, 0x20); + Decompress(gUnknown_08AE00E4, (void *)0x06016900); + + break; + } + + if (proc->timer == 7) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9024 +void sub_80C9024(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 0xe); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 0xe); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AE04F4, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceVanessaShadow, 0x200, 0x20); + Decompress(gUnknown_08AE0A48, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE0D94, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AE1634, 0x240, 0x20); + Decompress(gUnknown_08AE12BC, (void *)0x06012D00); + + break; + } + + if (proc->timer == 8) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9100 +void sub_80C9100(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 0xc); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 0xc); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimFaceVanessa, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceVanessa, 0x200, 0x20); + Decompress(Img_OpAnimFaceVanessaShadow, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE20E4, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AE2BF4, 0x240, 0x20); + Decompress(gUnknown_08AE281C, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AE2C14, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08AE3734, 0x280, 0x20); + Decompress(gUnknown_08AE33D4, (void *)0x06014B00); + + break; + } + + if (proc->timer == 9) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9218 +void sub_80C9218(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 10); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 10); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AE3754, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AE41E4, 0x200, 0x20); + Decompress(gUnknown_08AE3E54, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE4204, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AE4CE8, 0x240, 0x20); + Decompress(gUnknown_08AE4940, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AE4D08, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08AE5730, 0x280, 0x20); + Decompress(gUnknown_08AE53C8, (void *)0x06014B00); + + break; + } + + if (proc->timer == 10) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9330 +void sub_80C9330(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 9); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 9); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AE5750, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AE60B0, 0x200, 0x20); + Decompress(gUnknown_08AE5D54, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE60D0, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AE69EC, 0x240, 0x20); + Decompress(gUnknown_08AE6648, (void *)0x06012D00); + + break; + } + + if (proc->timer == 0xb) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C940C +void sub_80C940C(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 8); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 8); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AE6A0C, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AE72C8, 0x200, 0x20); + Decompress(gUnknown_08AE6FA8, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE84DC, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AE8D84, 0x240, 0x20); + Decompress(gUnknown_08AE8AB8, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AE72E8, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08AE7C2C, 0x280, 0x20); + Decompress(gUnknown_08AE78B0, (void *)0x06014B00); + + break; + + case 4: + Decompress(gUnknown_08AE7C4C, (void *)0x06015A00); + CopyToPalOpAnim(gUnknown_08AE84BC, 0x2c0, 0x20); + Decompress(gUnknown_08AE819C, (void *)0x06016900); + + break; + } + + if (proc->timer == 0xc) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C955C +void sub_80C955C(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 7); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 7); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AE8DA4, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AE9720, 0x200, 0x20); + Decompress(gUnknown_08AE9364, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AE9740, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AEA02C, 0x240, 0x20); + Decompress(gUnknown_08AE9CA4, (void *)0x06012D00); + + break; + } + + if (proc->timer == 0xd) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9638 +void sub_80C9638(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 6); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 6); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AECAE0, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AED3E8, 0x200, 0x20); + Decompress(gUnknown_08AED0A4, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AED408, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AEDC80, 0x240, 0x20); + Decompress(gUnknown_08AED95C, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AEDCA0, (void *)0x06013C00); + CopyToPalOpAnim(gUnknown_08AEE564, 0x280, 0x20); + Decompress(gUnknown_08AEE218, (void *)0x06014B00); + + break; + } + + if (proc->timer == 0xe) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C9750 +void sub_80C9750(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 5); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 5); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AEA04C, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AEAB50, 0x200, 0x20); + Decompress(gUnknown_08AEA7A8, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AEAB70, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AEB56C, 0x240, 0x20); + Decompress(gUnknown_08AEB1B8, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AEB58C, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceValterShadow, 0x280, 0x20); + Decompress(gUnknown_08AEBCEC, (void *)0x06014B00); + + break; + + case 4: + Decompress(gUnknown_08AEC068, (void *)0x06015A00); + CopyToPalOpAnim(gUnknown_08AECAC0, 0x2c0, 0x20); + Decompress(gUnknown_08AEC724, (void *)0x06016900); + + break; + } + + if (proc->timer == 0xf) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C98A0 +void sub_80C98A0(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 4); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 4); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(Img_OpAnimFaceValter, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceValter, 0x200, 0x20); + Decompress(Img_OpAnimFaceValterShadow, (void *)0x06010F00); + + break; + + case 2: + Decompress(gUnknown_08AEEEEC, (void *)0x06011E00); + CopyToPalOpAnim(gUnknown_08AEF880, 0x240, 0x20); + Decompress(gUnknown_08AEF580, (void *)0x06012D00); + + break; + + case 3: + Decompress(gUnknown_08AEF8A0, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceVigardeShadow, 0x280, 0x20); + Decompress(gUnknown_08AEFDC8, (void *)0x06014B00); + + break; + } + + if (proc->timer == 0x10) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} + +//! FE8U = 0x080C99B8 +void sub_80C99B8(struct ProcOpAnim * proc) +{ + int ret; + + ret = DivRem(proc->unk3E, 3); + ret = Interpolate(INTERPOLATE_LINEAR, 0, 0x1a, ret, 3); + + if (ret < 0xd) + { + SetBlendConfig(BLEND_EFFECT_ALPHA, ret, 0x10, 8); + } + else + { + SetBlendConfig(BLEND_EFFECT_ALPHA, 0x19 - ret, 0x10, 8); + } + + proc->unk3E++; + + switch (proc->timer) + { + case 1: + Decompress(gUnknown_08AF0150, (void *)0x06010000); + CopyToPalOpAnim(gUnknown_08AF0DE8, 0x200, 0x20); + Decompress(gUnknown_08AF09E4, (void *)0x06010F00); + + break; + + case 2: + Decompress(Img_OpAnimFaceVigarde, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceVigarde, 0x240, 0x20); + Decompress(Img_OpAnimFaceVigardeShadow, (void *)0x06012D00); + + break; + } + + if (proc->timer == 0x12) + { + proc->timer = 0; + Proc_Break(proc); + } + else + { + proc->timer++; + } + + return; +} From c0ecd1229a137788ab351e0b3066a973aba43c67 Mon Sep 17 00:00:00 2001 From: Eebit Date: Mon, 25 Mar 2024 01:56:30 -0400 Subject: [PATCH 2/2] (opanim) Name graphics data --- asm/opanim_80C6474.s | 4 +- data/data_opanim_gfx.s | 402 ++++++++++++++++++++--------------------- include/opanim.h | 198 ++++++++++---------- include/variables.h | 198 ++++++++++---------- src/opanim-main.c | 212 +++++++++++----------- 5 files changed, 507 insertions(+), 507 deletions(-) diff --git a/asm/opanim_80C6474.s b/asm/opanim_80C6474.s index ad711745..b911e7e6 100644 --- a/asm/opanim_80C6474.s +++ b/asm/opanim_80C6474.s @@ -4280,7 +4280,7 @@ _080CBCFE: ldrh r0, [r1, #0x2a] cmp r0, #1 bne _080CBD28 - ldr r0, _080CBD5C @ Tsa_OpAnimShinningRingBlinking + ldr r0, _080CBD5C @ Tsa_OpAnimShiningRingBlinking ldr r4, _080CBD60 @ 0x0600F000 adds r1, r4, #0 bl Decompress @@ -4316,7 +4316,7 @@ _080CBD4C: .4byte 0x00000828 _080CBD50: .4byte gUnknown_08AA7194 _080CBD54: .4byte 0x000020F0 _080CBD58: .4byte 0x00003168 -_080CBD5C: .4byte Tsa_OpAnimShinningRingBlinking +_080CBD5C: .4byte Tsa_OpAnimShiningRingBlinking _080CBD60: .4byte 0x0600F000 _080CBD64: adds r0, #1 diff --git a/data/data_opanim_gfx.s b/data/data_opanim_gfx.s index bb4afefa..82dde2f9 100644 --- a/data/data_opanim_gfx.s +++ b/data/data_opanim_gfx.s @@ -277,40 +277,40 @@ Pal_OpAnimTethys: @ 0x08ADBD18 gUnknown_08ADBE78: @ 0x08ADBE78 .incbin "baserom.gba", 0xADBE78, 0x20 - .global gUnknown_08ADBE98 -gUnknown_08ADBE98: @ 0x08ADBE98 + .global Img_OpAnimFaceRennac +Img_OpAnimFaceRennac: @ 0x08ADBE98 .incbin "baserom.gba", 0xADBE98, 0x528 - .global gUnknown_08ADC3C0 -gUnknown_08ADC3C0: @ 0x08ADC3C0 + .global Img_OpAnimFaceRennacShadow +Img_OpAnimFaceRennacShadow: @ 0x08ADC3C0 .incbin "baserom.gba", 0xADC3C0, 0x348 - .global gUnknown_08ADC708 -gUnknown_08ADC708: @ 0x08ADC708 + .global Pal_OpAnimFaceRennac +Pal_OpAnimFaceRennac: @ 0x08ADC708 .incbin "baserom.gba", 0xADC708, 0x20 - .global gUnknown_08ADC728 -gUnknown_08ADC728: @ 0x08ADC728 + .global Img_OpAnimFaceLArachel +Img_OpAnimFaceLArachel: @ 0x08ADC728 .incbin "baserom.gba", 0xADC728, 0x590 - .global gUnknown_08ADCCB8 -gUnknown_08ADCCB8: @ 0x08ADCCB8 + .global Img_OpAnimFaceLArachelShadow +Img_OpAnimFaceLArachelShadow: @ 0x08ADCCB8 .incbin "baserom.gba", 0xADCCB8, 0x398 - .global gUnknown_08ADD050 -gUnknown_08ADD050: @ 0x08ADD050 + .global Pal_OpAnimFaceLArachel +Pal_OpAnimFaceLArachel: @ 0x08ADD050 .incbin "baserom.gba", 0xADD050, 0x20 - .global gUnknown_08ADD070 -gUnknown_08ADD070: @ 0x08ADD070 + .global Img_OpAnimFaceDozla +Img_OpAnimFaceDozla: @ 0x08ADD070 .incbin "baserom.gba", 0xADD070, 0x67C - .global gUnknown_08ADD6EC -gUnknown_08ADD6EC: @ 0x08ADD6EC + .global Img_OpAnimFaceDozlaShadow +Img_OpAnimFaceDozlaShadow: @ 0x08ADD6EC .incbin "baserom.gba", 0xADD6EC, 0x368 - .global gUnknown_08ADDA54 -gUnknown_08ADDA54: @ 0x08ADDA54 + .global Pal_OpAnimFaceDozla +Pal_OpAnimFaceDozla: @ 0x08ADDA54 @ Replacing .incbin "baserom.gba", 0xADDA54, 0x20 .4byte 0x63ff4f34 .4byte 0x2a7d3b5f @@ -321,48 +321,48 @@ gUnknown_08ADDA54: @ 0x08ADDA54 .4byte 0x27ff10f1 .4byte 0x7ffe7353 - .global gUnknown_08ADDA74 -gUnknown_08ADDA74: @ 0x08ADDA74 + .global Img_OpAnimFaceEwan +Img_OpAnimFaceEwan: @ 0x08ADDA74 .incbin "baserom.gba", 0xADDA74, 0x60C - .global gUnknown_08ADE080 -gUnknown_08ADE080: @ 0x08ADE080 + .global Img_OpAnimFaceEwanShadow +Img_OpAnimFaceEwanShadow: @ 0x08ADE080 .incbin "baserom.gba", 0xADE080, 0x3FC - .global gUnknown_08ADE47C -gUnknown_08ADE47C: @ 0x08ADE47C + .global Pal_OpAnimFaceEwan +Pal_OpAnimFaceEwan: @ 0x08ADE47C @ Replacing .incbin "baserom.gba", 0xADE47C, 0x20 .4byte 0x63ff4f34 .4byte 0x2a7d3b5f .4byte 0x2d6e25d3 .4byte 0x153d24a8 - .4byte pal_08AF47F0 + 0xc4c9 + .4byte Pal_OpAnimShiningRing + 0xc4c9 .4byte 0x61627a08 .4byte 0x6e4e7b35 .4byte 0x7ffe3d8b - .global gUnknown_08ADE49C -gUnknown_08ADE49C: @ 0x08ADE49C + .global Img_OpAnimFaceGerik +Img_OpAnimFaceGerik: @ 0x08ADE49C .incbin "baserom.gba", 0xADE49C, 0x680 - .global gUnknown_08ADEB1C -gUnknown_08ADEB1C: @ 0x08ADEB1C + .global Img_OpAnimFaceGerikShadow +Img_OpAnimFaceGerikShadow: @ 0x08ADEB1C .incbin "baserom.gba", 0xADEB1C, 0x3B8 - .global gUnknown_08ADEED4 -gUnknown_08ADEED4: @ 0x08ADEED4 + .global Pal_OpAnimFaceGerik +Pal_OpAnimFaceGerik: @ 0x08ADEED4 .incbin "baserom.gba", 0xADEED4, 0x20 - .global gUnknown_08ADEEF4 -gUnknown_08ADEEF4: @ 0x08ADEEF4 + .global Img_OpAnimFaceTethys +Img_OpAnimFaceTethys: @ 0x08ADEEF4 .incbin "baserom.gba", 0xADEEF4, 0x698 - .global gUnknown_08ADF58C -gUnknown_08ADF58C: @ 0x08ADF58C + .global Img_OpAnimFaceTethysShadow +Img_OpAnimFaceTethysShadow: @ 0x08ADF58C .incbin "baserom.gba", 0xADF58C, 0x47C - .global gUnknown_08ADFA08 -gUnknown_08ADFA08: @ 0x08ADFA08 + .global Pal_OpAnimFaceTethys +Pal_OpAnimFaceTethys: @ 0x08ADFA08 @ Replacing .incbin "baserom.gba", 0xADFA08, 0x20 .4byte 0x6fdf4f34 .4byte 0x2e7d473f @@ -373,40 +373,40 @@ gUnknown_08ADFA08: @ 0x08ADFA08 .4byte 0x20ac27ff .4byte 0x67354e73 - .global gUnknown_08ADFA28 -gUnknown_08ADFA28: @ 0x08ADFA28 + .global Img_OpAnimFaceMarisa +Img_OpAnimFaceMarisa: @ 0x08ADFA28 .incbin "baserom.gba", 0xADFA28, 0x6BC - .global gUnknown_08AE00E4 -gUnknown_08AE00E4: @ 0x08AE00E4 + .global Img_OpAnimFaceMarisaShadow +Img_OpAnimFaceMarisaShadow: @ 0x08AE00E4 .incbin "baserom.gba", 0xAE00E4, 0x3F0 - .global gUnknown_08AE04D4 -gUnknown_08AE04D4: @ 0x08AE04D4 + .global Pal_OpAnimFaceMarisa +Pal_OpAnimFaceMarisa: @ 0x08AE04D4 .incbin "baserom.gba", 0xAE04D4, 0x20 - .global gUnknown_08AE04F4 -gUnknown_08AE04F4: @ 0x08AE04F4 + .global Img_OpAnimFaceGarcia +Img_OpAnimFaceGarcia: @ 0x08AE04F4 .incbin "baserom.gba", 0xAE04F4, 0x554 - .global gUnknown_08AE0A48 -gUnknown_08AE0A48: @ 0x08AE0A48 + .global Img_OpAnimFaceGarciaShadow +Img_OpAnimFaceGarciaShadow: @ 0x08AE0A48 .incbin "baserom.gba", 0xAE0A48, 0x32C - .global Pal_OpAnimFaceVanessaShadow -Pal_OpAnimFaceVanessaShadow: @ 0x08AE0D74 + .global Pal_OpAnimFaceGarcia +Pal_OpAnimFaceGarcia: @ 0x08AE0D74 .incbin "baserom.gba", 0xAE0D74, 0x20 - .global gUnknown_08AE0D94 -gUnknown_08AE0D94: @ 0x08AE0D94 + .global Img_OpAnimFaceRoss +Img_OpAnimFaceRoss: @ 0x08AE0D94 .incbin "baserom.gba", 0xAE0D94, 0x528 - .global gUnknown_08AE12BC -gUnknown_08AE12BC: @ 0x08AE12BC + .global Img_OpAnimFaceRossShadow +Img_OpAnimFaceRossShadow: @ 0x08AE12BC .incbin "baserom.gba", 0xAE12BC, 0x378 - .global gUnknown_08AE1634 -gUnknown_08AE1634: @ 0x08AE1634 + .global Pal_OpAnimFaceRoss +Pal_OpAnimFaceRoss: @ 0x08AE1634 .incbin "baserom.gba", 0xAE1634, 0x20 .global Img_OpAnimFaceVanessa @@ -421,244 +421,244 @@ Img_OpAnimFaceVanessaShadow: @ 0x08AE1D00 Pal_OpAnimFaceVanessa: @ 0x08AE20C4 .incbin "baserom.gba", 0xAE20C4, 0x20 - .global gUnknown_08AE20E4 -gUnknown_08AE20E4: @ 0x08AE20E4 + .global Img_OpAnimFaceTana +Img_OpAnimFaceTana: @ 0x08AE20E4 .incbin "baserom.gba", 0xAE20E4, 0x738 - .global gUnknown_08AE281C -gUnknown_08AE281C: @ 0x08AE281C + .global Img_OpAnimFaceTanaShadow +Img_OpAnimFaceTanaShadow: @ 0x08AE281C .incbin "baserom.gba", 0xAE281C, 0x3D8 - .global gUnknown_08AE2BF4 -gUnknown_08AE2BF4: @ 0x08AE2BF4 + .global Pal_OpAnimFaceTana +Pal_OpAnimFaceTana: @ 0x08AE2BF4 .incbin "baserom.gba", 0xAE2BF4, 0x20 - .global gUnknown_08AE2C14 -gUnknown_08AE2C14: @ 0x08AE2C14 + .global Img_OpAnimFaceSyrene +Img_OpAnimFaceSyrene: @ 0x08AE2C14 .incbin "baserom.gba", 0xAE2C14, 0x7C0 - .global gUnknown_08AE33D4 -gUnknown_08AE33D4: @ 0x08AE33D4 + .global Img_OpAnimFaceSyreneShadow +Img_OpAnimFaceSyreneShadow: @ 0x08AE33D4 .incbin "baserom.gba", 0xAE33D4, 0x360 - .global gUnknown_08AE3734 -gUnknown_08AE3734: @ 0x08AE3734 + .global Pal_OpAnimFaceSyrene +Pal_OpAnimFaceSyrene: @ 0x08AE3734 .incbin "baserom.gba", 0xAE3734, 0x20 - .global gUnknown_08AE3754 -gUnknown_08AE3754: @ 0x08AE3754 + .global Img_OpAnimFaceGilliam +Img_OpAnimFaceGilliam: @ 0x08AE3754 .incbin "baserom.gba", 0xAE3754, 0x700 - .global gUnknown_08AE3E54 -gUnknown_08AE3E54: @ 0x08AE3E54 + .global Img_OpAnimFaceGilliamShadow +Img_OpAnimFaceGilliamShadow: @ 0x08AE3E54 .incbin "baserom.gba", 0xAE3E54, 0x390 - .global gUnknown_08AE41E4 -gUnknown_08AE41E4: @ 0x08AE41E4 + .global Pal_OpAnimFaceGilliam +Pal_OpAnimFaceGilliam: @ 0x08AE41E4 .incbin "baserom.gba", 0xAE41E4, 0x20 - .global gUnknown_08AE4204 -gUnknown_08AE4204: @ 0x08AE4204 + .global Img_OpAnimFaceInnes +Img_OpAnimFaceInnes: @ 0x08AE4204 .incbin "baserom.gba", 0xAE4204, 0x73C - .global gUnknown_08AE4940 -gUnknown_08AE4940: @ 0x08AE4940 + .global Img_OpAnimFaceInnesShadow +Img_OpAnimFaceInnesShadow: @ 0x08AE4940 .incbin "baserom.gba", 0xAE4940, 0x3A8 - .global gUnknown_08AE4CE8 -gUnknown_08AE4CE8: @ 0x08AE4CE8 + .global Pal_OpAnimFaceInnes +Pal_OpAnimFaceInnes: @ 0x08AE4CE8 .incbin "baserom.gba", 0xAE4CE8, 0x20 - .global gUnknown_08AE4D08 -gUnknown_08AE4D08: @ 0x08AE4D08 + .global Img_OpAnimFaceMoulder +Img_OpAnimFaceMoulder: @ 0x08AE4D08 .incbin "baserom.gba", 0xAE4D08, 0x6C0 - .global gUnknown_08AE53C8 -gUnknown_08AE53C8: @ 0x08AE53C8 + .global Img_OpAnimFaceMoulderShadow +Img_OpAnimFaceMoulderShadow: @ 0x08AE53C8 .incbin "baserom.gba", 0xAE53C8, 0x368 - .global gUnknown_08AE5730 -gUnknown_08AE5730: @ 0x08AE5730 + .global Pal_OpAnimFaceMoulder +Pal_OpAnimFaceMoulder: @ 0x08AE5730 .incbin "baserom.gba", 0xAE5730, 0x20 - .global gUnknown_08AE5750 -gUnknown_08AE5750: @ 0x08AE5750 + .global Img_OpAnimFaceColm +Img_OpAnimFaceColm: @ 0x08AE5750 .incbin "baserom.gba", 0xAE5750, 0x604 - .global gUnknown_08AE5D54 -gUnknown_08AE5D54: @ 0x08AE5D54 + .global Img_OpAnimFaceColmShadow +Img_OpAnimFaceColmShadow: @ 0x08AE5D54 .incbin "baserom.gba", 0xAE5D54, 0x35C - .global gUnknown_08AE60B0 -gUnknown_08AE60B0: @ 0x08AE60B0 + .global Pal_OpAnimFaceColm +Pal_OpAnimFaceColm: @ 0x08AE60B0 .incbin "baserom.gba", 0xAE60B0, 0x20 - .global gUnknown_08AE60D0 -gUnknown_08AE60D0: @ 0x08AE60D0 + .global Img_OpAnimFaceNeimi +Img_OpAnimFaceNeimi: @ 0x08AE60D0 .incbin "baserom.gba", 0xAE60D0, 0x578 - .global gUnknown_08AE6648 -gUnknown_08AE6648: @ 0x08AE6648 + .global Img_OpAnimFaceNeimiShadow +Img_OpAnimFaceNeimiShadow: @ 0x08AE6648 .incbin "baserom.gba", 0xAE6648, 0x3A4 - .global gUnknown_08AE69EC -gUnknown_08AE69EC: @ 0x08AE69EC + .global Pal_OpAnimFaceNeimi +Pal_OpAnimFaceNeimi: @ 0x08AE69EC .incbin "baserom.gba", 0xAE69EC, 0x20 - .global gUnknown_08AE6A0C -gUnknown_08AE6A0C: @ 0x08AE6A0C + .global Img_OpAnimFaceKnoll +Img_OpAnimFaceKnoll: @ 0x08AE6A0C .incbin "baserom.gba", 0xAE6A0C, 0x59C - .global gUnknown_08AE6FA8 -gUnknown_08AE6FA8: @ 0x08AE6FA8 + .global Img_OpAnimFaceKnollShadow +Img_OpAnimFaceKnollShadow: @ 0x08AE6FA8 .incbin "baserom.gba", 0xAE6FA8, 0x320 - .global gUnknown_08AE72C8 -gUnknown_08AE72C8: @ 0x08AE72C8 + .global Pal_OpAnimFaceKnoll +Pal_OpAnimFaceKnoll: @ 0x08AE72C8 .incbin "baserom.gba", 0xAE72C8, 0x20 - .global gUnknown_08AE72E8 -gUnknown_08AE72E8: @ 0x08AE72E8 + .global Img_OpAnimFaceCormag +Img_OpAnimFaceCormag: @ 0x08AE72E8 .incbin "baserom.gba", 0xAE72E8, 0x5C8 - .global gUnknown_08AE78B0 -gUnknown_08AE78B0: @ 0x08AE78B0 + .global Img_OpAnimFaceCormagShadow +Img_OpAnimFaceCormagShadow: @ 0x08AE78B0 .incbin "baserom.gba", 0xAE78B0, 0x37C - .global gUnknown_08AE7C2C -gUnknown_08AE7C2C: @ 0x08AE7C2C + .global Pal_OpAnimFaceCormag +Pal_OpAnimFaceCormag: @ 0x08AE7C2C .incbin "baserom.gba", 0xAE7C2C, 0x20 - .global gUnknown_08AE7C4C -gUnknown_08AE7C4C: @ 0x08AE7C4C + .global Img_OpAnimFaceAmelia +Img_OpAnimFaceAmelia: @ 0x08AE7C4C .incbin "baserom.gba", 0xAE7C4C, 0x550 - .global gUnknown_08AE819C -gUnknown_08AE819C: @ 0x08AE819C + .global Img_OpAnimFaceAmeliaShadow +Img_OpAnimFaceAmeliaShadow: @ 0x08AE819C .incbin "baserom.gba", 0xAE819C, 0x320 - .global gUnknown_08AE84BC -gUnknown_08AE84BC: @ 0x08AE84BC + .global Pal_OpAnimFaceAmelia +Pal_OpAnimFaceAmelia: @ 0x08AE84BC .incbin "baserom.gba", 0xAE84BC, 0x20 - .global gUnknown_08AE84DC -gUnknown_08AE84DC: @ 0x08AE84DC + .global Img_OpAnimFaceNatasha +Img_OpAnimFaceNatasha: @ 0x08AE84DC .incbin "baserom.gba", 0xAE84DC, 0x5DC - .global gUnknown_08AE8AB8 -gUnknown_08AE8AB8: @ 0x08AE8AB8 + .global Img_OpAnimFaceNatashaShadow +Img_OpAnimFaceNatashaShadow: @ 0x08AE8AB8 .incbin "baserom.gba", 0xAE8AB8, 0x2CC - .global gUnknown_08AE8D84 -gUnknown_08AE8D84: @ 0x08AE8D84 + .global Pal_OpAnimFaceNatasha +Pal_OpAnimFaceNatasha: @ 0x08AE8D84 .incbin "baserom.gba", 0xAE8D84, 0x20 - .global gUnknown_08AE8DA4 -gUnknown_08AE8DA4: @ 0x08AE8DA4 + .global Img_OpAnimFaceLute +Img_OpAnimFaceLute: @ 0x08AE8DA4 .incbin "baserom.gba", 0xAE8DA4, 0x5C0 - .global gUnknown_08AE9364 -gUnknown_08AE9364: @ 0x08AE9364 + .global Img_OpAnimFaceLuteShadow +Img_OpAnimFaceLuteShadow: @ 0x08AE9364 .incbin "baserom.gba", 0xAE9364, 0x3BC - .global gUnknown_08AE9720 -gUnknown_08AE9720: @ 0x08AE9720 + .global Pal_OpAnimFaceLute +Pal_OpAnimFaceLute: @ 0x08AE9720 .incbin "baserom.gba", 0xAE9720, 0x20 - .global gUnknown_08AE9740 -gUnknown_08AE9740: @ 0x08AE9740 + .global Img_OpAnimFaceArtur +Img_OpAnimFaceArtur: @ 0x08AE9740 .incbin "baserom.gba", 0xAE9740, 0x564 - .global gUnknown_08AE9CA4 -gUnknown_08AE9CA4: @ 0x08AE9CA4 + .global Img_OpAnimFaceArturShadow +Img_OpAnimFaceArturShadow: @ 0x08AE9CA4 .incbin "baserom.gba", 0xAE9CA4, 0x388 - .global gUnknown_08AEA02C -gUnknown_08AEA02C: @ 0x08AEA02C + .global Pal_OpAnimFaceArtur +Pal_OpAnimFaceArtur: @ 0x08AEA02C .incbin "baserom.gba", 0xAEA02C, 0x20 - .global gUnknown_08AEA04C -gUnknown_08AEA04C: @ 0x08AEA04C + .global Img_OpAnimFaceKyle +Img_OpAnimFaceKyle: @ 0x08AEA04C .incbin "baserom.gba", 0xAEA04C, 0x75C - .global gUnknown_08AEA7A8 -gUnknown_08AEA7A8: @ 0x08AEA7A8 + .global Img_OpAnimFaceKyleShadow +Img_OpAnimFaceKyleShadow: @ 0x08AEA7A8 .incbin "baserom.gba", 0xAEA7A8, 0x3A8 - .global gUnknown_08AEAB50 -gUnknown_08AEAB50: @ 0x08AEAB50 + .global Pal_OpAnimFaceKyle +Pal_OpAnimFaceKyle: @ 0x08AEAB50 .incbin "baserom.gba", 0xAEAB50, 0x20 - .global gUnknown_08AEAB70 -gUnknown_08AEAB70: @ 0x08AEAB70 + .global Img_OpAnimFaceFranz +Img_OpAnimFaceFranz: @ 0x08AEAB70 .incbin "baserom.gba", 0xAEAB70, 0x648 - .global gUnknown_08AEB1B8 -gUnknown_08AEB1B8: @ 0x08AEB1B8 + .global Img_OpAnimFaceFranzShadow +Img_OpAnimFaceFranzShadow: @ 0x08AEB1B8 .incbin "baserom.gba", 0xAEB1B8, 0x3B4 - .global gUnknown_08AEB56C -gUnknown_08AEB56C: @ 0x08AEB56C + .global Pal_OpAnimFaceFranz +Pal_OpAnimFaceFranz: @ 0x08AEB56C .incbin "baserom.gba", 0xAEB56C, 0x20 - .global gUnknown_08AEB58C -gUnknown_08AEB58C: @ 0x08AEB58C + .global Img_OpAnimFaceForde +Img_OpAnimFaceForde: @ 0x08AEB58C .incbin "baserom.gba", 0xAEB58C, 0x760 - .global gUnknown_08AEBCEC -gUnknown_08AEBCEC: @ 0x08AEBCEC + .global Img_OpAnimFaceFordeShadow +Img_OpAnimFaceFordeShadow: @ 0x08AEBCEC .incbin "baserom.gba", 0xAEBCEC, 0x35C - .global Pal_OpAnimFaceValterShadow -Pal_OpAnimFaceValterShadow: @ 0x08AEC048 + .global Pal_OpAnimFaceForde +Pal_OpAnimFaceForde: @ 0x08AEC048 .incbin "graphics/op_anim/FaceValterShadow.gbapal", 0x0, 0x20 - .global gUnknown_08AEC068 -gUnknown_08AEC068: @ 0x08AEC068 + .global Img_OpAnimFaceSeth +Img_OpAnimFaceSeth: @ 0x08AEC068 .incbin "baserom.gba", 0xAEC068, 0x6BC - .global gUnknown_08AEC724 -gUnknown_08AEC724: @ 0x08AEC724 + .global Img_OpAnimFaceSethShadow +Img_OpAnimFaceSethShadow: @ 0x08AEC724 .incbin "baserom.gba", 0xAEC724, 0x39C - .global gUnknown_08AECAC0 -gUnknown_08AECAC0: @ 0x08AECAC0 + .global Pal_OpAnimFaceSeth +Pal_OpAnimFaceSeth: @ 0x08AECAC0 .incbin "baserom.gba", 0xAECAC0, 0x20 - .global gUnknown_08AECAE0 -gUnknown_08AECAE0: @ 0x08AECAE0 + .global Img_OpAnimFaceDuessel +Img_OpAnimFaceDuessel: @ 0x08AECAE0 .incbin "baserom.gba", 0xAECAE0, 0x5C4 - .global gUnknown_08AED0A4 -gUnknown_08AED0A4: @ 0x08AED0A4 + .global Img_OpAnimFaceDuesselShadow +Img_OpAnimFaceDuesselShadow: @ 0x08AED0A4 .incbin "baserom.gba", 0xAED0A4, 0x344 - .global gUnknown_08AED3E8 -gUnknown_08AED3E8: @ 0x08AED3E8 + .global Pal_OpAnimFaceDuessel +Pal_OpAnimFaceDuessel: @ 0x08AED3E8 .incbin "baserom.gba", 0xAED3E8, 0x20 - .global gUnknown_08AED408 -gUnknown_08AED408: @ 0x08AED408 + .global Img_OpAnimFaceSelena +Img_OpAnimFaceSelena: @ 0x08AED408 .incbin "baserom.gba", 0xAED408, 0x554 - .global gUnknown_08AED95C -gUnknown_08AED95C: @ 0x08AED95C + .global Img_OpAnimFaceSelenaShadow +Img_OpAnimFaceSelenaShadow: @ 0x08AED95C .incbin "baserom.gba", 0xAED95C, 0x324 - .global gUnknown_08AEDC80 -gUnknown_08AEDC80: @ 0x08AEDC80 + .global Pal_OpAnimFaceSelena +Pal_OpAnimFaceSelena: @ 0x08AEDC80 .incbin "baserom.gba", 0xAEDC80, 0x20 - .global gUnknown_08AEDCA0 -gUnknown_08AEDCA0: @ 0x08AEDCA0 + .global Img_OpAnimFaceGlen +Img_OpAnimFaceGlen: @ 0x08AEDCA0 .incbin "baserom.gba", 0xAEDCA0, 0x578 - .global gUnknown_08AEE218 -gUnknown_08AEE218: @ 0x08AEE218 + .global Img_OpAnimFaceGlenShadow +Img_OpAnimFaceGlenShadow: @ 0x08AEE218 .incbin "baserom.gba", 0xAEE218, 0x34C - .global gUnknown_08AEE564 -gUnknown_08AEE564: @ 0x08AEE564 + .global Pal_OpAnimFaceGlen +Pal_OpAnimFaceGlen: @ 0x08AEE564 .incbin "baserom.gba", 0xAEE564, 0x20 .global Img_OpAnimFaceValter @@ -673,40 +673,40 @@ Img_OpAnimFaceValterShadow: @ 0x08AEEBB0 Pal_OpAnimFaceValter: @ 0x08AEEECC .incbin "baserom.gba", 0xAEEECC, 0x20 - .global gUnknown_08AEEEEC -gUnknown_08AEEEEC: @ 0x08AEEEEC + .global Img_OpAnimFaceRiev +Img_OpAnimFaceRiev: @ 0x08AEEEEC .incbin "baserom.gba", 0xAEEEEC, 0x694 - .global gUnknown_08AEF580 -gUnknown_08AEF580: @ 0x08AEF580 + .global Img_OpAnimFaceRievShadow +Img_OpAnimFaceRievShadow: @ 0x08AEF580 .incbin "baserom.gba", 0xAEF580, 0x300 - .global gUnknown_08AEF880 -gUnknown_08AEF880: @ 0x08AEF880 + .global Pal_OpAnimFaceRiev +Pal_OpAnimFaceRiev: @ 0x08AEF880 .incbin "baserom.gba", 0xAEF880, 0x20 - .global gUnknown_08AEF8A0 -gUnknown_08AEF8A0: @ 0x08AEF8A0 + .global Img_OpAnimFaceCaellach +Img_OpAnimFaceCaellach: @ 0x08AEF8A0 .incbin "baserom.gba", 0xAEF8A0, 0x528 - .global gUnknown_08AEFDC8 -gUnknown_08AEFDC8: @ 0x08AEFDC8 + .global Img_OpAnimFaceCaellachShadow +Img_OpAnimFaceCaellachShadow: @ 0x08AEFDC8 .incbin "baserom.gba", 0xAEFDC8, 0x368 - .global Pal_OpAnimFaceVigardeShadow -Pal_OpAnimFaceVigardeShadow: @ 0x08AF0130 + .global Pal_OpAnimFaceCaellach +Pal_OpAnimFaceCaellach: @ 0x08AF0130 .incbin "baserom.gba", 0xAF0130, 0x20 - .global gUnknown_08AF0150 -gUnknown_08AF0150: @ 0x08AF0150 + .global Img_OpAnimFaceLyon +Img_OpAnimFaceLyon: @ 0x08AF0150 .incbin "baserom.gba", 0xAF0150, 0x894 - .global gUnknown_08AF09E4 -gUnknown_08AF09E4: @ 0x08AF09E4 + .global Img_OpAnimFaceLyonShadow +Img_OpAnimFaceLyonShadow: @ 0x08AF09E4 .incbin "baserom.gba", 0xAF09E4, 0x404 - .global gUnknown_08AF0DE8 -gUnknown_08AF0DE8: @ 0x08AF0DE8 + .global Pal_OpAnimFaceLyon +Pal_OpAnimFaceLyon: @ 0x08AF0DE8 .incbin "baserom.gba", 0xAF0DE8, 0x20 .global Img_OpAnimFaceVigarde @@ -753,20 +753,20 @@ Img_OpAnimDivlEye: @ 0x08AF2654 Pal_OpAnimDivlEye: @ 0x08AF310C .incbin "graphics/op_anim/devil_eye.gbapal", 0x0, 0x20 - .global Img_OpAnimShinningRing -Img_OpAnimShinningRing: @ 0x08AF312C + .global Img_OpAnimShiningRing +Img_OpAnimShiningRing: @ 0x08AF312C .incbin "baserom.gba", 0xAF312C, 0xF20 - .global Tsa_OpAnimShinningRing -Tsa_OpAnimShinningRing: @ 0x08AF404C + .global Tsa_OpAnimShiningRing +Tsa_OpAnimShiningRing: @ 0x08AF404C .incbin "baserom.gba", 0xAF404C, 0x2E4 - .global Tsa_OpAnimShinningRingBlinking -Tsa_OpAnimShinningRingBlinking: @ 0x08AF4330 + .global Tsa_OpAnimShiningRingBlinking +Tsa_OpAnimShiningRingBlinking: @ 0x08AF4330 .incbin "baserom.gba", 0xAF4330, 0x4C0 - .global pal_08AF47F0 -pal_08AF47F0: @ 0x08AF47F0 + .global Pal_OpAnimShiningRing +Pal_OpAnimShiningRing: @ 0x08AF47F0 .incbin "baserom.gba", 0xAF47F0, 0x80 .global img_opanim1 diff --git a/include/opanim.h b/include/opanim.h index 5d1dba78..1c6658ca 100644 --- a/include/opanim.h +++ b/include/opanim.h @@ -119,7 +119,7 @@ extern CONST_DATA struct ProcCmd ProcScr_OpAnimMergeBG[]; // extern ??? gUnknown_08AA715C // extern ??? gUnknown_08AA7194 -extern CONST_DATA u16 * pal_08AF47F0[]; +extern CONST_DATA u16 * Pal_OpAnimShiningRing[]; extern CONST_DATA u8 img_opanim1[]; extern CONST_DATA u8 img_opanim2[]; extern CONST_DATA u8 img_opanim3[]; @@ -330,8 +330,8 @@ extern u8 Img_OpAnimJoshua2[]; extern u8 gUnknown_08ACC340[]; extern u8 Tsa_OpAnimJoshua2[]; -extern u8 Img_OpAnimShinningRing[]; -extern u8 Tsa_OpAnimShinningRing[]; +extern u8 Img_OpAnimShiningRing[]; +extern u8 Tsa_OpAnimShiningRing[]; extern struct ProcCmd gUnknown_08AA705C[]; extern struct ProcCmd gUnknown_08AA707C[]; @@ -346,141 +346,141 @@ extern u16 pal_08B103D8[]; extern u16 gUnknown_08ADBE78[]; -extern u8 gUnknown_08ADBE98[]; -extern u16 gUnknown_08ADC708[]; -extern u8 gUnknown_08ADC3C0[]; +extern u8 Img_OpAnimFaceRennac[]; +extern u16 Pal_OpAnimFaceRennac[]; +extern u8 Img_OpAnimFaceRennacShadow[]; -extern u8 gUnknown_08ADC728[]; -extern u16 gUnknown_08ADD050[]; -extern u8 gUnknown_08ADCCB8[]; +extern u8 Img_OpAnimFaceLArachel[]; +extern u16 Pal_OpAnimFaceLArachel[]; +extern u8 Img_OpAnimFaceLArachelShadow[]; -extern u8 gUnknown_08ADD070[]; -extern u16 gUnknown_08ADDA54[]; -extern u8 gUnknown_08ADD6EC[]; +extern u8 Img_OpAnimFaceDozla[]; +extern u16 Pal_OpAnimFaceDozla[]; +extern u8 Img_OpAnimFaceDozlaShadow[]; -extern u8 gUnknown_08ADDA74[]; -extern u16 gUnknown_08ADE47C[]; -extern u8 gUnknown_08ADE080[]; +extern u8 Img_OpAnimFaceEwan[]; +extern u16 Pal_OpAnimFaceEwan[]; +extern u8 Img_OpAnimFaceEwanShadow[]; -extern u8 gUnknown_08ADEEF4[]; -extern u16 gUnknown_08ADFA08[]; -extern u8 gUnknown_08ADF58C[]; +extern u8 Img_OpAnimFaceTethys[]; +extern u16 Pal_OpAnimFaceTethys[]; +extern u8 Img_OpAnimFaceTethysShadow[]; -extern u8 gUnknown_08ADE49C[]; -extern u16 gUnknown_08ADEED4[]; -extern u8 gUnknown_08ADEB1C[]; +extern u8 Img_OpAnimFaceGerik[]; +extern u16 Pal_OpAnimFaceGerik[]; +extern u8 Img_OpAnimFaceGerikShadow[]; -extern u8 gUnknown_08ADFA28[]; -extern u16 gUnknown_08AE04D4[]; -extern u8 gUnknown_08AE00E4[]; +extern u8 Img_OpAnimFaceMarisa[]; +extern u16 Pal_OpAnimFaceMarisa[]; +extern u8 Img_OpAnimFaceMarisaShadow[]; -extern u8 gUnknown_08AE04F4[]; -extern u16 Pal_OpAnimFaceVanessaShadow[]; -extern u8 gUnknown_08AE0A48[]; +extern u8 Img_OpAnimFaceGarcia[]; +extern u16 Pal_OpAnimFaceGarcia[]; +extern u8 Img_OpAnimFaceGarciaShadow[]; -extern u8 gUnknown_08AE0D94[]; -extern u16 gUnknown_08AE1634[]; -extern u8 gUnknown_08AE12BC[]; +extern u8 Img_OpAnimFaceRoss[]; +extern u16 Pal_OpAnimFaceRoss[]; +extern u8 Img_OpAnimFaceRossShadow[]; extern u8 Img_OpAnimFaceVanessa[]; extern u16 Pal_OpAnimFaceVanessa[]; extern u8 Img_OpAnimFaceVanessaShadow[]; -extern u8 gUnknown_08AE20E4[]; -extern u16 gUnknown_08AE2BF4[]; -extern u8 gUnknown_08AE281C[]; +extern u8 Img_OpAnimFaceTana[]; +extern u16 Pal_OpAnimFaceTana[]; +extern u8 Img_OpAnimFaceTanaShadow[]; -extern u8 gUnknown_08AE2C14[]; -extern u16 gUnknown_08AE3734[]; -extern u8 gUnknown_08AE33D4[]; +extern u8 Img_OpAnimFaceSyrene[]; +extern u16 Pal_OpAnimFaceSyrene[]; +extern u8 Img_OpAnimFaceSyreneShadow[]; -extern u8 gUnknown_08AE3754[]; -extern u16 gUnknown_08AE41E4[]; -extern u8 gUnknown_08AE3E54[]; +extern u8 Img_OpAnimFaceGilliam[]; +extern u16 Pal_OpAnimFaceGilliam[]; +extern u8 Img_OpAnimFaceGilliamShadow[]; -extern u8 gUnknown_08AE4204[]; -extern u16 gUnknown_08AE4CE8[]; -extern u8 gUnknown_08AE4940[]; +extern u8 Img_OpAnimFaceInnes[]; +extern u16 Pal_OpAnimFaceInnes[]; +extern u8 Img_OpAnimFaceInnesShadow[]; -extern u8 gUnknown_08AE4D08[]; -extern u16 gUnknown_08AE5730[]; -extern u8 gUnknown_08AE53C8[]; +extern u8 Img_OpAnimFaceMoulder[]; +extern u16 Pal_OpAnimFaceMoulder[]; +extern u8 Img_OpAnimFaceMoulderShadow[]; -extern u8 gUnknown_08AE5750[]; -extern u16 gUnknown_08AE60B0[]; -extern u8 gUnknown_08AE5D54[]; +extern u8 Img_OpAnimFaceColm[]; +extern u16 Pal_OpAnimFaceColm[]; +extern u8 Img_OpAnimFaceColmShadow[]; -extern u8 gUnknown_08AE60D0[]; -extern u16 gUnknown_08AE69EC[]; -extern u8 gUnknown_08AE6648[]; +extern u8 Img_OpAnimFaceNeimi[]; +extern u16 Pal_OpAnimFaceNeimi[]; +extern u8 Img_OpAnimFaceNeimiShadow[]; -extern u8 gUnknown_08AE6A0C[]; -extern u16 gUnknown_08AE72C8[]; -extern u8 gUnknown_08AE6FA8[]; +extern u8 Img_OpAnimFaceKnoll[]; +extern u16 Pal_OpAnimFaceKnoll[]; +extern u8 Img_OpAnimFaceKnollShadow[]; -extern u8 gUnknown_08AE84DC[]; -extern u16 gUnknown_08AE8D84[]; -extern u8 gUnknown_08AE8AB8[]; +extern u8 Img_OpAnimFaceNatasha[]; +extern u16 Pal_OpAnimFaceNatasha[]; +extern u8 Img_OpAnimFaceNatashaShadow[]; -extern u8 gUnknown_08AE72E8[]; -extern u16 gUnknown_08AE7C2C[]; -extern u8 gUnknown_08AE78B0[]; +extern u8 Img_OpAnimFaceCormag[]; +extern u16 Pal_OpAnimFaceCormag[]; +extern u8 Img_OpAnimFaceCormagShadow[]; -extern u8 gUnknown_08AE7C4C[]; -extern u16 gUnknown_08AE84BC[]; -extern u8 gUnknown_08AE819C[]; +extern u8 Img_OpAnimFaceAmelia[]; +extern u16 Pal_OpAnimFaceAmelia[]; +extern u8 Img_OpAnimFaceAmeliaShadow[]; -extern u8 gUnknown_08AE8DA4[]; -extern u16 gUnknown_08AE9720[]; -extern u8 gUnknown_08AE9364[]; +extern u8 Img_OpAnimFaceLute[]; +extern u16 Pal_OpAnimFaceLute[]; +extern u8 Img_OpAnimFaceLuteShadow[]; -extern u8 gUnknown_08AE9740[]; -extern u16 gUnknown_08AEA02C[]; -extern u8 gUnknown_08AE9CA4[]; +extern u8 Img_OpAnimFaceArtur[]; +extern u16 Pal_OpAnimFaceArtur[]; +extern u8 Img_OpAnimFaceArturShadow[]; -extern u8 gUnknown_08AECAE0[]; -extern u16 gUnknown_08AED3E8[]; -extern u8 gUnknown_08AED0A4[]; +extern u8 Img_OpAnimFaceDuessel[]; +extern u16 Pal_OpAnimFaceDuessel[]; +extern u8 Img_OpAnimFaceDuesselShadow[]; -extern u8 gUnknown_08AED408[]; -extern u16 gUnknown_08AEDC80[]; -extern u8 gUnknown_08AED95C[]; +extern u8 Img_OpAnimFaceSelena[]; +extern u16 Pal_OpAnimFaceSelena[]; +extern u8 Img_OpAnimFaceSelenaShadow[]; -extern u8 gUnknown_08AEDCA0[]; -extern u16 gUnknown_08AEE564[]; -extern u8 gUnknown_08AEE218[]; +extern u8 Img_OpAnimFaceGlen[]; +extern u16 Pal_OpAnimFaceGlen[]; +extern u8 Img_OpAnimFaceGlenShadow[]; -extern u8 gUnknown_08AEA04C[]; -extern u16 gUnknown_08AEAB50[]; -extern u8 gUnknown_08AEA7A8[]; +extern u8 Img_OpAnimFaceKyle[]; +extern u16 Pal_OpAnimFaceKyle[]; +extern u8 Img_OpAnimFaceKyleShadow[]; -extern u8 gUnknown_08AEAB70[]; -extern u16 gUnknown_08AEB56C[]; -extern u8 gUnknown_08AEB1B8[]; +extern u8 Img_OpAnimFaceFranz[]; +extern u16 Pal_OpAnimFaceFranz[]; +extern u8 Img_OpAnimFaceFranzShadow[]; -extern u8 gUnknown_08AEB58C[]; -extern u16 Pal_OpAnimFaceValterShadow[]; -extern u8 gUnknown_08AEBCEC[]; +extern u8 Img_OpAnimFaceForde[]; +extern u16 Pal_OpAnimFaceForde[]; +extern u8 Img_OpAnimFaceFordeShadow[]; -extern u8 gUnknown_08AEC068[]; -extern u16 gUnknown_08AECAC0[]; -extern u8 gUnknown_08AEC724[]; +extern u8 Img_OpAnimFaceSeth[]; +extern u16 Pal_OpAnimFaceSeth[]; +extern u8 Img_OpAnimFaceSethShadow[]; extern u8 Img_OpAnimFaceValter[]; extern u16 Pal_OpAnimFaceValter[]; extern u8 Img_OpAnimFaceValterShadow[]; -extern u8 gUnknown_08AEEEEC[]; -extern u16 gUnknown_08AEF880[]; -extern u8 gUnknown_08AEF580[]; +extern u8 Img_OpAnimFaceRiev[]; +extern u16 Pal_OpAnimFaceRiev[]; +extern u8 Img_OpAnimFaceRievShadow[]; -extern u8 gUnknown_08AEF8A0[]; -extern u16 Pal_OpAnimFaceVigardeShadow[]; -extern u8 gUnknown_08AEFDC8[]; +extern u8 Img_OpAnimFaceCaellach[]; +extern u16 Pal_OpAnimFaceCaellach[]; +extern u8 Img_OpAnimFaceCaellachShadow[]; -extern u8 gUnknown_08AF0150[]; -extern u16 gUnknown_08AF0DE8[]; -extern u8 gUnknown_08AF09E4[]; +extern u8 Img_OpAnimFaceLyon[]; +extern u16 Pal_OpAnimFaceLyon[]; +extern u8 Img_OpAnimFaceLyonShadow[]; extern u8 Img_OpAnimFaceVigarde[]; extern u16 Pal_OpAnimFaceVigarde[]; diff --git a/include/variables.h b/include/variables.h index 6a8b5a15..ea48f85b 100644 --- a/include/variables.h +++ b/include/variables.h @@ -1390,108 +1390,108 @@ extern u16 Pal_OpAnimSaleh2[]; // extern ??? gUnknown_08ADBC0C // extern ??? Pal_OpAnimTethys // extern ??? gUnknown_08ADBE78 -// extern ??? gUnknown_08ADBE98 -// extern ??? gUnknown_08ADC3C0 -// extern ??? gUnknown_08ADC708 -// extern ??? gUnknown_08ADC728 -// extern ??? gUnknown_08ADCCB8 -// extern ??? gUnknown_08ADD050 -// extern ??? gUnknown_08ADD070 -// extern ??? gUnknown_08ADD6EC -// extern ??? gUnknown_08ADDA54 -// extern ??? gUnknown_08ADDA74 -// extern ??? gUnknown_08ADE080 -// extern ??? gUnknown_08ADE47C -// extern ??? gUnknown_08ADE49C -// extern ??? gUnknown_08ADEB1C -// extern ??? gUnknown_08ADEED4 -// extern ??? gUnknown_08ADEEF4 -// extern ??? gUnknown_08ADF58C -// extern ??? gUnknown_08ADFA08 -// extern ??? gUnknown_08ADFA28 -// extern ??? gUnknown_08AE00E4 -// extern ??? gUnknown_08AE04D4 -// extern ??? gUnknown_08AE04F4 -// extern ??? gUnknown_08AE0A48 -// extern ??? Pal_OpAnimFaceVanessaShadow -// extern ??? gUnknown_08AE0D94 -// extern ??? gUnknown_08AE12BC -// extern ??? gUnknown_08AE1634 +// extern ??? Img_OpAnimFaceRennac +// extern ??? Img_OpAnimFaceRennacShadow +// extern ??? Pal_OpAnimFaceRennac +// extern ??? Img_OpAnimFaceLArachel +// extern ??? Img_OpAnimFaceLArachelShadow +// extern ??? Pal_OpAnimFaceLArachel +// extern ??? Img_OpAnimFaceDozla +// extern ??? Img_OpAnimFaceDozlaShadow +// extern ??? Pal_OpAnimFaceDozla +// extern ??? Img_OpAnimFaceEwan +// extern ??? Img_OpAnimFaceEwanShadow +// extern ??? Pal_OpAnimFaceEwan +// extern ??? Img_OpAnimFaceGerik +// extern ??? Img_OpAnimFaceGerikShadow +// extern ??? Pal_OpAnimFaceGerik +// extern ??? Img_OpAnimFaceTethys +// extern ??? Img_OpAnimFaceTethysShadow +// extern ??? Pal_OpAnimFaceTethys +// extern ??? Img_OpAnimFaceMarisa +// extern ??? Img_OpAnimFaceMarisaShadow +// extern ??? Pal_OpAnimFaceMarisa +// extern ??? Img_OpAnimFaceGarcia +// extern ??? Img_OpAnimFaceGarciaShadow +// extern ??? Pal_OpAnimFaceGarcia +// extern ??? Img_OpAnimFaceRoss +// extern ??? Img_OpAnimFaceRossShadow +// extern ??? Pal_OpAnimFaceRoss // extern ??? Img_OpAnimFaceVanessa // extern ??? Img_OpAnimFaceVanessaShadow // extern ??? Pal_OpAnimFaceVanessa -// extern ??? gUnknown_08AE20E4 -// extern ??? gUnknown_08AE281C -// extern ??? gUnknown_08AE2BF4 -// extern ??? gUnknown_08AE2C14 -// extern ??? gUnknown_08AE33D4 -// extern ??? gUnknown_08AE3734 -// extern ??? gUnknown_08AE3754 -// extern ??? gUnknown_08AE3E54 -// extern ??? gUnknown_08AE41E4 -// extern ??? gUnknown_08AE4204 -// extern ??? gUnknown_08AE4940 -// extern ??? gUnknown_08AE4CE8 -// extern ??? gUnknown_08AE4D08 -// extern ??? gUnknown_08AE53C8 -// extern ??? gUnknown_08AE5730 -// extern ??? gUnknown_08AE5750 -// extern ??? gUnknown_08AE5D54 -// extern ??? gUnknown_08AE60B0 -// extern ??? gUnknown_08AE60D0 -// extern ??? gUnknown_08AE6648 -// extern ??? gUnknown_08AE69EC -// extern ??? gUnknown_08AE6A0C -// extern ??? gUnknown_08AE6FA8 -// extern ??? gUnknown_08AE72C8 -// extern ??? gUnknown_08AE72E8 -// extern ??? gUnknown_08AE78B0 -// extern ??? gUnknown_08AE7C2C -// extern ??? gUnknown_08AE7C4C -// extern ??? gUnknown_08AE819C -// extern ??? gUnknown_08AE84BC -// extern ??? gUnknown_08AE84DC -// extern ??? gUnknown_08AE8AB8 -// extern ??? gUnknown_08AE8D84 -// extern ??? gUnknown_08AE8DA4 -// extern ??? gUnknown_08AE9364 -// extern ??? gUnknown_08AE9720 -// extern ??? gUnknown_08AE9740 -// extern ??? gUnknown_08AE9CA4 -// extern ??? gUnknown_08AEA02C -// extern ??? gUnknown_08AEA04C -// extern ??? gUnknown_08AEA7A8 -// extern ??? gUnknown_08AEAB50 -// extern ??? gUnknown_08AEAB70 -// extern ??? gUnknown_08AEB1B8 -// extern ??? gUnknown_08AEB56C -// extern ??? gUnknown_08AEB58C -// extern ??? gUnknown_08AEBCEC -// extern ??? Pal_OpAnimFaceValterShadow -// extern ??? gUnknown_08AEC068 -// extern ??? gUnknown_08AEC724 -// extern ??? gUnknown_08AECAC0 -// extern ??? gUnknown_08AECAE0 -// extern ??? gUnknown_08AED0A4 -// extern ??? gUnknown_08AED3E8 -// extern ??? gUnknown_08AED408 -// extern ??? gUnknown_08AED95C -// extern ??? gUnknown_08AEDC80 -// extern ??? gUnknown_08AEDCA0 -// extern ??? gUnknown_08AEE218 -// extern ??? gUnknown_08AEE564 +// extern ??? Img_OpAnimFaceTana +// extern ??? Img_OpAnimFaceTanaShadow +// extern ??? Pal_OpAnimFaceTana +// extern ??? Img_OpAnimFaceSyrene +// extern ??? Img_OpAnimFaceSyreneShadow +// extern ??? Pal_OpAnimFaceSyrene +// extern ??? Img_OpAnimFaceGilliam +// extern ??? Img_OpAnimFaceGilliamShadow +// extern ??? Pal_OpAnimFaceGilliam +// extern ??? Img_OpAnimFaceInnes +// extern ??? Img_OpAnimFaceInnesShadow +// extern ??? Pal_OpAnimFaceInnes +// extern ??? Img_OpAnimFaceMoulder +// extern ??? Img_OpAnimFaceMoulderShadow +// extern ??? Pal_OpAnimFaceMoulder +// extern ??? Img_OpAnimFaceColm +// extern ??? Img_OpAnimFaceColmShadow +// extern ??? Pal_OpAnimFaceColm +// extern ??? Img_OpAnimFaceNeimi +// extern ??? Img_OpAnimFaceNeimiShadow +// extern ??? Pal_OpAnimFaceNeimi +// extern ??? Img_OpAnimFaceKnoll +// extern ??? Img_OpAnimFaceKnollShadow +// extern ??? Pal_OpAnimFaceKnoll +// extern ??? Img_OpAnimFaceCormag +// extern ??? Img_OpAnimFaceCormagShadow +// extern ??? Pal_OpAnimFaceCormag +// extern ??? Img_OpAnimFaceAmelia +// extern ??? Img_OpAnimFaceAmeliaShadow +// extern ??? Pal_OpAnimFaceAmelia +// extern ??? Img_OpAnimFaceNatasha +// extern ??? Img_OpAnimFaceNatashaShadow +// extern ??? Pal_OpAnimFaceNatasha +// extern ??? Img_OpAnimFaceLute +// extern ??? Img_OpAnimFaceLuteShadow +// extern ??? Pal_OpAnimFaceLute +// extern ??? Img_OpAnimFaceArtur +// extern ??? Img_OpAnimFaceArturShadow +// extern ??? Pal_OpAnimFaceArtur +// extern ??? Img_OpAnimFaceKyle +// extern ??? Img_OpAnimFaceKyleShadow +// extern ??? Pal_OpAnimFaceKyle +// extern ??? Img_OpAnimFaceFranz +// extern ??? Img_OpAnimFaceFranzShadow +// extern ??? Pal_OpAnimFaceFranz +// extern ??? Img_OpAnimFaceForde +// extern ??? Img_OpAnimFaceFordeShadow +// extern ??? Pal_OpAnimFaceForde +// extern ??? Img_OpAnimFaceSeth +// extern ??? Img_OpAnimFaceSethShadow +// extern ??? Pal_OpAnimFaceSeth +// extern ??? Img_OpAnimFaceDuessel +// extern ??? Img_OpAnimFaceDuesselShadow +// extern ??? Pal_OpAnimFaceDuessel +// extern ??? Img_OpAnimFaceSelena +// extern ??? Img_OpAnimFaceSelenaShadow +// extern ??? Pal_OpAnimFaceSelena +// extern ??? Img_OpAnimFaceGlen +// extern ??? Img_OpAnimFaceGlenShadow +// extern ??? Pal_OpAnimFaceGlen // extern ??? Img_OpAnimFaceValter // extern ??? Img_OpAnimFaceValterShadow // extern ??? Pal_OpAnimFaceValter -// extern ??? gUnknown_08AEEEEC -// extern ??? gUnknown_08AEF580 -// extern ??? gUnknown_08AEF880 -// extern ??? gUnknown_08AEF8A0 -// extern ??? gUnknown_08AEFDC8 -// extern ??? Pal_OpAnimFaceVigardeShadow -// extern ??? gUnknown_08AF0150 -// extern ??? gUnknown_08AF09E4 -// extern ??? gUnknown_08AF0DE8 +// extern ??? Img_OpAnimFaceRiev +// extern ??? Img_OpAnimFaceRievShadow +// extern ??? Pal_OpAnimFaceRiev +// extern ??? Img_OpAnimFaceCaellach +// extern ??? Img_OpAnimFaceCaellachShadow +// extern ??? Pal_OpAnimFaceCaellach +// extern ??? Img_OpAnimFaceLyon +// extern ??? Img_OpAnimFaceLyonShadow +// extern ??? Pal_OpAnimFaceLyon // extern ??? Img_OpAnimFaceVigarde // extern ??? Img_OpAnimFaceVigardeShadow // extern ??? Pal_OpAnimFaceVigarde @@ -1503,9 +1503,9 @@ extern u8 Img_OpAnimEphEirikaName[]; extern u16 Pal_OpAnimEphEirikaName[]; extern u8 Img_OpAnimDivlEye[]; extern u16 Pal_OpAnimDivlEye[]; -// extern ??? Img_OpAnimShinningRing -// extern ??? Tsa_OpAnimShinningRing -// extern ??? Tsa_OpAnimShinningRingBlinking +// extern ??? Img_OpAnimShiningRing +// extern ??? Tsa_OpAnimShiningRing +// extern ??? Tsa_OpAnimShiningRingBlinking extern u8 Tsa_GameIntroNintendo[]; extern u8 Img_GameIntroNintendo[]; diff --git a/src/opanim-main.c b/src/opanim-main.c index b51c94c3..7b1e8708 100644 --- a/src/opanim-main.c +++ b/src/opanim-main.c @@ -611,7 +611,7 @@ void sub_80C72A4(u8 type) SetBlendTargetA(0, 1, 0, 0, 0); SetBlendTargetB(0, 0, 1, 0, 0); - ApplyPalettesOpAnim(pal_08AF47F0, 8, 4); + ApplyPalettesOpAnim(Pal_OpAnimShiningRing, 8, 4); BG_SetPosition(BG_1, 0, 0); SetWinEnable(0, 0, 0); @@ -1536,12 +1536,12 @@ void sub_80C8690(struct ProcOpAnim * proc) break; case 5: - Decompress(Img_OpAnimShinningRing, (void *)0x06004000); + Decompress(Img_OpAnimShiningRing, (void *)0x06004000); break; case 6: - Decompress(Tsa_OpAnimShinningRing, (void *)0x0600F000); + Decompress(Tsa_OpAnimShiningRing, (void *)0x0600F000); vram = (void *)0x0600F000; @@ -1859,23 +1859,23 @@ void sub_80C8D30(struct ProcOpAnim * proc) break; case 3: - Decompress(gUnknown_08ADBE98, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08ADC708, 0x200, 0x20); - Decompress(gUnknown_08ADC3C0, (void *)0x06010F00); + Decompress(Img_OpAnimFaceRennac, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceRennac, 0x200, 0x20); + Decompress(Img_OpAnimFaceRennacShadow, (void *)0x06010F00); break; case 4: - Decompress(gUnknown_08ADC728, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08ADD050, 0x240, 0x20); - Decompress(gUnknown_08ADCCB8, (void *)0x06012D00); + Decompress(Img_OpAnimFaceLArachel, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceLArachel, 0x240, 0x20); + Decompress(Img_OpAnimFaceLArachelShadow, (void *)0x06012D00); break; case 5: - Decompress(gUnknown_08ADD070, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08ADDA54, 0x280, 0x20); - Decompress(gUnknown_08ADD6EC, (void *)0x06014B00); + Decompress(Img_OpAnimFaceDozla, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceDozla, 0x280, 0x20); + Decompress(Img_OpAnimFaceDozlaShadow, (void *)0x06014B00); break; } @@ -1915,30 +1915,30 @@ void sub_80C8ED4(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08ADDA74, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08ADE47C, 0x200, 0x20); - Decompress(gUnknown_08ADE080, (void *)0x06010F00); + Decompress(Img_OpAnimFaceEwan, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceEwan, 0x200, 0x20); + Decompress(Img_OpAnimFaceEwanShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08ADEEF4, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08ADFA08, 0x240, 0x20); - Decompress(gUnknown_08ADF58C, (void *)0x06012D00); + Decompress(Img_OpAnimFaceTethys, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceTethys, 0x240, 0x20); + Decompress(Img_OpAnimFaceTethysShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08ADE49C, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08ADEED4, 0x280, 0x20); - Decompress(gUnknown_08ADEB1C, (void *)0x06014B00); + Decompress(Img_OpAnimFaceGerik, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceGerik, 0x280, 0x20); + Decompress(Img_OpAnimFaceGerikShadow, (void *)0x06014B00); break; case 4: - Decompress(gUnknown_08ADFA28, (void *)0x06015A00); - CopyToPalOpAnim(gUnknown_08AE04D4, 0x2c0, 0x20); - Decompress(gUnknown_08AE00E4, (void *)0x06016900); + Decompress(Img_OpAnimFaceMarisa, (void *)0x06015A00); + CopyToPalOpAnim(Pal_OpAnimFaceMarisa, 0x2c0, 0x20); + Decompress(Img_OpAnimFaceMarisaShadow, (void *)0x06016900); break; } @@ -1978,16 +1978,16 @@ void sub_80C9024(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AE04F4, (void *)0x06010000); - CopyToPalOpAnim(Pal_OpAnimFaceVanessaShadow, 0x200, 0x20); - Decompress(gUnknown_08AE0A48, (void *)0x06010F00); + Decompress(Img_OpAnimFaceGarcia, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceGarcia, 0x200, 0x20); + Decompress(Img_OpAnimFaceGarciaShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AE0D94, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AE1634, 0x240, 0x20); - Decompress(gUnknown_08AE12BC, (void *)0x06012D00); + Decompress(Img_OpAnimFaceRoss, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceRoss, 0x240, 0x20); + Decompress(Img_OpAnimFaceRossShadow, (void *)0x06012D00); break; } @@ -2034,16 +2034,16 @@ void sub_80C9100(struct ProcOpAnim * proc) break; case 2: - Decompress(gUnknown_08AE20E4, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AE2BF4, 0x240, 0x20); - Decompress(gUnknown_08AE281C, (void *)0x06012D00); + Decompress(Img_OpAnimFaceTana, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceTana, 0x240, 0x20); + Decompress(Img_OpAnimFaceTanaShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AE2C14, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08AE3734, 0x280, 0x20); - Decompress(gUnknown_08AE33D4, (void *)0x06014B00); + Decompress(Img_OpAnimFaceSyrene, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceSyrene, 0x280, 0x20); + Decompress(Img_OpAnimFaceSyreneShadow, (void *)0x06014B00); break; } @@ -2083,23 +2083,23 @@ void sub_80C9218(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AE3754, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AE41E4, 0x200, 0x20); - Decompress(gUnknown_08AE3E54, (void *)0x06010F00); + Decompress(Img_OpAnimFaceGilliam, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceGilliam, 0x200, 0x20); + Decompress(Img_OpAnimFaceGilliamShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AE4204, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AE4CE8, 0x240, 0x20); - Decompress(gUnknown_08AE4940, (void *)0x06012D00); + Decompress(Img_OpAnimFaceInnes, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceInnes, 0x240, 0x20); + Decompress(Img_OpAnimFaceInnesShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AE4D08, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08AE5730, 0x280, 0x20); - Decompress(gUnknown_08AE53C8, (void *)0x06014B00); + Decompress(Img_OpAnimFaceMoulder, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceMoulder, 0x280, 0x20); + Decompress(Img_OpAnimFaceMoulderShadow, (void *)0x06014B00); break; } @@ -2139,21 +2139,21 @@ void sub_80C9330(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AE5750, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AE60B0, 0x200, 0x20); - Decompress(gUnknown_08AE5D54, (void *)0x06010F00); + Decompress(Img_OpAnimFaceColm, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceColm, 0x200, 0x20); + Decompress(Img_OpAnimFaceColmShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AE60D0, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AE69EC, 0x240, 0x20); - Decompress(gUnknown_08AE6648, (void *)0x06012D00); + Decompress(Img_OpAnimFaceNeimi, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceNeimi, 0x240, 0x20); + Decompress(Img_OpAnimFaceNeimiShadow, (void *)0x06012D00); break; } - if (proc->timer == 0xb) + if (proc->timer == 11) { proc->timer = 0; Proc_Break(proc); @@ -2188,35 +2188,35 @@ void sub_80C940C(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AE6A0C, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AE72C8, 0x200, 0x20); - Decompress(gUnknown_08AE6FA8, (void *)0x06010F00); + Decompress(Img_OpAnimFaceKnoll, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceKnoll, 0x200, 0x20); + Decompress(Img_OpAnimFaceKnollShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AE84DC, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AE8D84, 0x240, 0x20); - Decompress(gUnknown_08AE8AB8, (void *)0x06012D00); + Decompress(Img_OpAnimFaceNatasha, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceNatasha, 0x240, 0x20); + Decompress(Img_OpAnimFaceNatashaShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AE72E8, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08AE7C2C, 0x280, 0x20); - Decompress(gUnknown_08AE78B0, (void *)0x06014B00); + Decompress(Img_OpAnimFaceCormag, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceCormag, 0x280, 0x20); + Decompress(Img_OpAnimFaceCormagShadow, (void *)0x06014B00); break; case 4: - Decompress(gUnknown_08AE7C4C, (void *)0x06015A00); - CopyToPalOpAnim(gUnknown_08AE84BC, 0x2c0, 0x20); - Decompress(gUnknown_08AE819C, (void *)0x06016900); + Decompress(Img_OpAnimFaceAmelia, (void *)0x06015A00); + CopyToPalOpAnim(Pal_OpAnimFaceAmelia, 0x2c0, 0x20); + Decompress(Img_OpAnimFaceAmeliaShadow, (void *)0x06016900); break; } - if (proc->timer == 0xc) + if (proc->timer == 12) { proc->timer = 0; Proc_Break(proc); @@ -2251,21 +2251,21 @@ void sub_80C955C(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AE8DA4, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AE9720, 0x200, 0x20); - Decompress(gUnknown_08AE9364, (void *)0x06010F00); + Decompress(Img_OpAnimFaceLute, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceLute, 0x200, 0x20); + Decompress(Img_OpAnimFaceLuteShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AE9740, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AEA02C, 0x240, 0x20); - Decompress(gUnknown_08AE9CA4, (void *)0x06012D00); + Decompress(Img_OpAnimFaceArtur, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceArtur, 0x240, 0x20); + Decompress(Img_OpAnimFaceArturShadow, (void *)0x06012D00); break; } - if (proc->timer == 0xd) + if (proc->timer == 13) { proc->timer = 0; Proc_Break(proc); @@ -2300,28 +2300,28 @@ void sub_80C9638(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AECAE0, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AED3E8, 0x200, 0x20); - Decompress(gUnknown_08AED0A4, (void *)0x06010F00); + Decompress(Img_OpAnimFaceDuessel, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceDuessel, 0x200, 0x20); + Decompress(Img_OpAnimFaceDuesselShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AED408, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AEDC80, 0x240, 0x20); - Decompress(gUnknown_08AED95C, (void *)0x06012D00); + Decompress(Img_OpAnimFaceSelena, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceSelena, 0x240, 0x20); + Decompress(Img_OpAnimFaceSelenaShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AEDCA0, (void *)0x06013C00); - CopyToPalOpAnim(gUnknown_08AEE564, 0x280, 0x20); - Decompress(gUnknown_08AEE218, (void *)0x06014B00); + Decompress(Img_OpAnimFaceGlen, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceGlen, 0x280, 0x20); + Decompress(Img_OpAnimFaceGlenShadow, (void *)0x06014B00); break; } - if (proc->timer == 0xe) + if (proc->timer == 14) { proc->timer = 0; Proc_Break(proc); @@ -2356,35 +2356,35 @@ void sub_80C9750(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AEA04C, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AEAB50, 0x200, 0x20); - Decompress(gUnknown_08AEA7A8, (void *)0x06010F00); + Decompress(Img_OpAnimFaceKyle, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceKyle, 0x200, 0x20); + Decompress(Img_OpAnimFaceKyleShadow, (void *)0x06010F00); break; case 2: - Decompress(gUnknown_08AEAB70, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AEB56C, 0x240, 0x20); - Decompress(gUnknown_08AEB1B8, (void *)0x06012D00); + Decompress(Img_OpAnimFaceFranz, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceFranz, 0x240, 0x20); + Decompress(Img_OpAnimFaceFranzShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AEB58C, (void *)0x06013C00); - CopyToPalOpAnim(Pal_OpAnimFaceValterShadow, 0x280, 0x20); - Decompress(gUnknown_08AEBCEC, (void *)0x06014B00); + Decompress(Img_OpAnimFaceForde, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceForde, 0x280, 0x20); + Decompress(Img_OpAnimFaceFordeShadow, (void *)0x06014B00); break; case 4: - Decompress(gUnknown_08AEC068, (void *)0x06015A00); - CopyToPalOpAnim(gUnknown_08AECAC0, 0x2c0, 0x20); - Decompress(gUnknown_08AEC724, (void *)0x06016900); + Decompress(Img_OpAnimFaceSeth, (void *)0x06015A00); + CopyToPalOpAnim(Pal_OpAnimFaceSeth, 0x2c0, 0x20); + Decompress(Img_OpAnimFaceSethShadow, (void *)0x06016900); break; } - if (proc->timer == 0xf) + if (proc->timer == 15) { proc->timer = 0; Proc_Break(proc); @@ -2426,21 +2426,21 @@ void sub_80C98A0(struct ProcOpAnim * proc) break; case 2: - Decompress(gUnknown_08AEEEEC, (void *)0x06011E00); - CopyToPalOpAnim(gUnknown_08AEF880, 0x240, 0x20); - Decompress(gUnknown_08AEF580, (void *)0x06012D00); + Decompress(Img_OpAnimFaceRiev, (void *)0x06011E00); + CopyToPalOpAnim(Pal_OpAnimFaceRiev, 0x240, 0x20); + Decompress(Img_OpAnimFaceRievShadow, (void *)0x06012D00); break; case 3: - Decompress(gUnknown_08AEF8A0, (void *)0x06013C00); - CopyToPalOpAnim(Pal_OpAnimFaceVigardeShadow, 0x280, 0x20); - Decompress(gUnknown_08AEFDC8, (void *)0x06014B00); + Decompress(Img_OpAnimFaceCaellach, (void *)0x06013C00); + CopyToPalOpAnim(Pal_OpAnimFaceCaellach, 0x280, 0x20); + Decompress(Img_OpAnimFaceCaellachShadow, (void *)0x06014B00); break; } - if (proc->timer == 0x10) + if (proc->timer == 16) { proc->timer = 0; Proc_Break(proc); @@ -2475,9 +2475,9 @@ void sub_80C99B8(struct ProcOpAnim * proc) switch (proc->timer) { case 1: - Decompress(gUnknown_08AF0150, (void *)0x06010000); - CopyToPalOpAnim(gUnknown_08AF0DE8, 0x200, 0x20); - Decompress(gUnknown_08AF09E4, (void *)0x06010F00); + Decompress(Img_OpAnimFaceLyon, (void *)0x06010000); + CopyToPalOpAnim(Pal_OpAnimFaceLyon, 0x200, 0x20); + Decompress(Img_OpAnimFaceLyonShadow, (void *)0x06010F00); break; @@ -2489,7 +2489,7 @@ void sub_80C99B8(struct ProcOpAnim * proc) break; } - if (proc->timer == 0x12) + if (proc->timer == 18) { proc->timer = 0; Proc_Break(proc);