Match & link m_font, minor Famicom work

This commit is contained in:
Cuyler36
2024-01-20 23:59:01 -05:00
parent f6a2187b0f
commit ad0000e994
6 changed files with 309 additions and 10 deletions
+10 -1
View File
@@ -8,13 +8,18 @@
extern "C" {
#endif
#define FAMICOM_INTERNAL_ROM_NUM 19
#define NESTAG_CMD_SIZE 3
#define NESTAG_SIZE (NESTAG_CMD_SIZE + 1)
#define NESTAG_END "END"
#define NESTAG_VEQ "VEQ"
#define NESTAG_VNE "VNE"
#define NESTAG_GID "GID"
#define NESTAG_GNM "GNM"
#define NESTAG_CPN "CPN"
#define NESTAG_OFS "OFS"
#define NESTAG_OFS "OFS" /* Offset into the shared highscore data to read/write at */
#define NESTAG_HSC "HSC"
#define NESTAG_GNO "GNO"
#define NESTAG_BBR "BBR"
@@ -100,6 +105,8 @@ typedef struct famicom_common_s {
extern void* my_malloc_current;
extern u8 save_game_image;
extern FamicomCommon famicomCommon;
typedef u8 (*FAMICOM_GETSAVECHAN_PROC)(int* player_no, int* slot_card_result);
extern void famicom_setCallback_getSaveChan(FAMICOM_GETSAVECHAN_PROC getSaveChan_proc);
extern int famicom_mount_archive();
@@ -109,6 +116,8 @@ extern int famicom_1frame();
extern int famicom_init(int, void*, u8);
extern int famicom_cleanup();
extern void nesinfo_tags_set(int rom_no);
#ifdef __cplusplus
}
+2 -1
View File
@@ -27,7 +27,8 @@ typedef struct ks_nes_common_work_obj_s {
} ksNesCommonWorkObj;
typedef struct ks_nes_state_obj_s {
u8 _temp[0x1A78];
/* 0x0000 */ u8 wram[2048];
/* 0x0800 */ u8 _temp[0x1A78 - 0x800];
} ksNesStateObj;
#ifdef __cplusplus
+1
View File
@@ -11,6 +11,7 @@ extern "C" {
void * memcpy(void * dst, const void * src, size_t n);
void * memset(void * dst, int val, size_t n);
int memcmp(const void* src1, const void* src2, size_t n);
void __fill_mem(void * dst, int val, unsigned long n);
#pragma section code_type