| 1 | #ifndef _PCE_H |
| 2 | #define _PCE_H |
| 3 | |
| 4 | #include "../mednafen-types.h" |
| 5 | #include "../mednafen.h" |
| 6 | #include "../state.h" |
| 7 | #include "../general.h" |
| 8 | |
| 9 | #define PCE_MASTER_CLOCK 21477272.727273 |
| 10 | |
| 11 | #define DECLFR(x) uint8 MDFN_FASTCALL x (uint32 A) |
| 12 | #define DECLFW(x) void MDFN_FASTCALL x (uint32 A, uint8 V) |
| 13 | |
| 14 | extern uint8 ROMSpace[0x88 * 8192 + 8192]; |
| 15 | |
| 16 | typedef void (MDFN_FASTCALL *writefunc)(uint32 A, uint8 V); |
| 17 | typedef uint8 (MDFN_FASTCALL *readfunc)(uint32 A); |
| 18 | |
| 19 | extern uint8 PCEIODataBuffer; |
| 20 | |
| 21 | bool PCE_InitCD(void) MDFN_COLD; |
| 22 | |
| 23 | extern bool PCE_ACEnabled; // Arcade Card emulation enabled? |
| 24 | void PCE_Power(void) MDFN_COLD; |
| 25 | |
| 26 | extern readfunc PCERead[0x100]; |
| 27 | extern writefunc PCEWrite[0x100]; |
| 28 | extern int pce_overclocked; |
| 29 | |
| 30 | extern uint8 BaseRAM[32768 + 8192]; |
| 31 | |
| 32 | #include "huc6280.h" |
| 33 | |
| 34 | #endif |