bsnes/sfc/chip/event/event.hpp

45 lines
794 B
C++

//SNES-EVENT board emulation:
//* Campus Challenge '92
//* Powerfest '94
struct Event : Coprocessor {
MappedRAM rom[4];
MappedRAM ram;
static void Enter();
void enter();
void init();
void load();
void unload();
void power();
void reset();
void submitScore();
uint8 sr(unsigned);
void dr(unsigned, uint8 data);
uint8 rom_read(unsigned addr);
uint8 ram_read(unsigned addr);
void ram_write(unsigned addr, uint8 data);
void serialize(serializer&);
//private:
enum class Board : unsigned { CampusChallenge92, Powerfest94 } board;
unsigned revision;
unsigned timer;
uint8 status;
uint8 select;
bool timerActive;
bool scoreActive;
unsigned timerSecondsRemaining;
unsigned scoreSecondsRemaining;
bool usedSaveState;
};
extern Event event;