Commit missed files

This commit is contained in:
Phillip Stephens 2022-09-10 15:41:46 -07:00
parent e00208cc49
commit c33b42a7c0
3 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,6 @@
.section .data, "wa" .section .data, "wa"
.balign 8 .balign 8
.global CardData
CardData: CardData:
# ROM: 0x3F3D00 # ROM: 0x3F3D00
.4byte 0 .4byte 0
@ -104,7 +103,6 @@ next:
.section .text, "ax" .section .text, "ax"
.global bitrev
bitrev: bitrev:
/* 803B908C 003B5FEC 38 00 00 08 */ li r0, 8 /* 803B908C 003B5FEC 38 00 00 08 */ li r0, 8
/* 803B9090 003B5FF0 7C 09 03 A6 */ mtctr r0 /* 803B9090 003B5FF0 7C 09 03 A6 */ mtctr r0
@ -211,7 +209,6 @@ lbl_803B91E8:
/* 803B91F0 003B6150 7C E3 3B 78 */ mr r3, r7 /* 803B91F0 003B6150 7C E3 3B 78 */ mr r3, r7
/* 803B91F4 003B6154 4E 80 00 20 */ blr /* 803B91F4 003B6154 4E 80 00 20 */ blr
.global ReadArrayUnlock
ReadArrayUnlock: ReadArrayUnlock:
/* 803B91F8 003B6158 7C 08 02 A6 */ mflr r0 /* 803B91F8 003B6158 7C 08 02 A6 */ mflr r0
/* 803B91FC 003B615C 90 01 00 04 */ stw r0, 4(r1) /* 803B91FC 003B615C 90 01 00 04 */ stw r0, 4(r1)

View File

@ -5,6 +5,7 @@
extern "C" { extern "C" {
#endif #endif
#define CARD_FAT_AVAIL 0x0000u
#define CARD_FAT_CHECKSUM 0x0000u #define CARD_FAT_CHECKSUM 0x0000u
#define CARD_FAT_CHECKSUMINV 0x0001u #define CARD_FAT_CHECKSUMINV 0x0001u
#define CARD_FAT_CHECKCODE 0x0002u #define CARD_FAT_CHECKCODE 0x0002u
@ -94,8 +95,11 @@ typedef struct CARDID {
u16 checkSumInv; u16 checkSumInv;
} CARDID; } CARDID;
#define CARDIsValidBlockNo(card, iBlock) (CARD_NUM_SYSTEM_BLOCK <= (iBlock) && (iBlock) < (card)->cBlock)
CARDDir* __CARDGetDirBlock( CARDControl* card ); CARDDir* __CARDGetDirBlock( CARDControl* card );
u16* __CARDGetFatBlock ( CARDControl* card ); u16* __CARDGetFatBlock ( CARDControl* card );
s32 __CARDUpdateFatBlock(s32 chan, u16* fat, CARDCallback callback);
extern CARDControl __CARDBlock[2]; extern CARDControl __CARDBlock[2];

View File

@ -818,7 +818,7 @@ CARD_FILES :=\
$(BUILD_DIR)/asm/Dolphin/card/CARDBios.o\ $(BUILD_DIR)/asm/Dolphin/card/CARDBios.o\
$(BUILD_DIR)/src/Dolphin/card/CARDUnlock.ep.o\ $(BUILD_DIR)/src/Dolphin/card/CARDUnlock.ep.o\
$(BUILD_DIR)/src/Dolphin/card/CARDRdwr.ep.o\ $(BUILD_DIR)/src/Dolphin/card/CARDRdwr.ep.o\
$(BUILD_DIR)/asm/Dolphin/card/CARDBlock.o\ $(BUILD_DIR)/src/Dolphin/card/CARDBlock.ep.o\
$(BUILD_DIR)/asm/Dolphin/card/CARDDir.o\ $(BUILD_DIR)/asm/Dolphin/card/CARDDir.o\
$(BUILD_DIR)/asm/Dolphin/card/CARDCheck.o\ $(BUILD_DIR)/asm/Dolphin/card/CARDCheck.o\
$(BUILD_DIR)/asm/Dolphin/card/CARDMount.o\ $(BUILD_DIR)/asm/Dolphin/card/CARDMount.o\