Split credit.c and crout.c

This commit is contained in:
Zac 2024-11-21 19:29:07 +00:00 committed by GitHub
parent bd89d36d65
commit cf18edc4c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 46 additions and 4 deletions

View File

@ -116,10 +116,9 @@ segments:
- [0x47100, asm, P2/cnvo]
- [0x47340, c, P2/coin]
- [0x4a398, asm, P2/cplcy]
- [0x4bbd0, asm, P2/credit]
- [0x4c0c0, asm, P2/crout]
#- [0x, asm, P2/crusher]
- [0x4bbd0, c, P2/credit]
- [0x4c0c0, c, P2/crout]
- [0x4c550, asm, P2/crusher]
- [0x4e0a8, asm, P2/crv]

View File

@ -650,6 +650,27 @@ break_bottle = 0x149190; // type:func
s_asnipDprize = 0x2619A0; // size:0x3c
////////////////////////////////////////////////////////////////
// P2/credit.c
////////////////////////////////////////////////////////////////
InitCredit = 0x14ABD0; // type:func
PostCreditLoad = 0x14AC48; // type:func
SetCreditClock = 0x14AD00; // type:func
UpdateCredit = 0x14AD70; // type:func
DrawCredit = 0x14ADE0; // type:func
PlaceCredit = 0x14AEA0; // type:func
VacateCredit = 0x14AF10; // type:func
SetCreditLine = 0x14AF38; // type:func
////////////////////////////////////////////////////////////////
// P2/crout.c
////////////////////////////////////////////////////////////////
CroutDecomp = 0x14B0C0; // type:func
CroutSolve = 0x14B3E0; // type:func
////////////////////////////////////////////////////////////////
// P2/difficulty.c
////////////////////////////////////////////////////////////////

17
src/P2/credit.c Normal file
View File

@ -0,0 +1,17 @@
#include "common.h"
INCLUDE_ASM(const s32, "P2/credit", InitCredit__FP6CREDIT5BLOTK);
INCLUDE_ASM(const s32, "P2/credit", PostCreditLoad__FP6CREDIT);
INCLUDE_ASM(const s32, "P2/credit", SetCreditClock__FP6CREDITPf);
INCLUDE_ASM(const s32, "P2/credit", UpdateCredit__FP6CREDIT);
INCLUDE_ASM(const s32, "P2/credit", DrawCredit__FP6CREDIT);
INCLUDE_ASM(const s32, "P2/credit", PlaceCredit__FP6CREDITffi);
INCLUDE_ASM(const s32, "P2/credit", VacateCredit__FP6CREDIT);
INCLUDE_ASM(const s32, "P2/credit", SetCreditLine__FP6CREDITiPcf);

5
src/P2/crout.c Normal file
View File

@ -0,0 +1,5 @@
#include "common.h"
INCLUDE_ASM(const s32, "P2/crout", CroutDecomp__FiPfT1);
INCLUDE_ASM(const s32, "P2/crout", CroutSolve__FiPfN21);