Correct some invalid prototypes.

This commit is contained in:
Godzil 2018-01-30 17:27:22 +00:00
parent 9673b4694b
commit 12663ba99a
7 changed files with 21 additions and 18 deletions

View File

@ -34,7 +34,7 @@ typedef struct NesCart_
uint8_t *VROMBanks; /* Pointer on the first VROM */ uint8_t *VROMBanks; /* Pointer on the first VROM */
} NesCart; } NesCart;
void DumpCartProperties(); void DumpCartProperties(FILE *out, NesCart * cart);
int LoadCart(const char *filename, NesCart * cart); int LoadCart(const char *filename, NesCart * cart);
#endif #endif

View File

@ -23,7 +23,7 @@ typedef int (*MapperInit) (NesCart * cart);
typedef int (*MapperWriteHook) (register unsigned short Addr, typedef int (*MapperWriteHook) (register unsigned short Addr,
register unsigned char Value); register unsigned char Value);
typedef int (*MapperIRQ) (int cycledone); typedef int (*MapperIRQ) (int cycledone);
typedef void (*MapperDump) (); typedef void (*MapperDump) (FILE *fp);
#ifdef __TINES_MAPPERS__ #ifdef __TINES_MAPPERS__
@ -53,8 +53,10 @@ void set_prom_bank_32k(unsigned short addr,int slot);
void mapper_list(); void mapper_list();
int mapper_init(NesCart *cart); int mapper_init(NesCart *cart);
extern int (*mapper_irqloop) (int cyclodone);
extern void (*mapper_dump) (FILE *fp); extern MapperIRQ mapper_irqloop;
extern MapperDump mapper_dump;
extern MapperWriteHook mapper_hook;
#endif /* __TINES_MAPPERS__ */ #endif /* __TINES_MAPPERS__ */

View File

@ -574,8 +574,9 @@ void WrHook4000Multiplexer(byte addr, byte value)
} }
break; break;
// default:
//Page40[addr] = value; default:
Page40[addr] = value;
// console_printf(Console_Default, "40%02X: 0x%02X\n", addr, value); // console_printf(Console_Default, "40%02X: 0x%02X\n", addr, value);
// console_printf(Console_Default, "pAPU: 0x%X @ 0x40%X\n", value, addr); // console_printf(Console_Default, "pAPU: 0x%X @ 0x40%X\n", value, addr);
} }

View File

@ -17,4 +17,4 @@
int mmc1_InitMapper (NesCart *cart); int mmc1_InitMapper (NesCart *cart);
int mmc1_MapperIRQ (int cycledone); int mmc1_MapperIRQ (int cycledone);
void mmc1_MapperDump (); void mmc1_MapperDump (FILE *fp);

View File

@ -17,4 +17,4 @@
int norom_InitMapper (NesCart *cart); int norom_InitMapper (NesCart *cart);
int norom_MapperIRQ (int cycledone); int norom_MapperIRQ (int cycledone);
void norom_MapperDump (); void norom_MapperDump (FILE *fp);