bsnes/gameboy/system/system.hpp

27 lines
475 B
C++
Raw Normal View History

class Interface;
enum class Input : unsigned {
Up, Down, Left, Right, B, A, Select, Start,
};
struct System : MMIO {
struct BootROM {
static const uint8 dmg[256];
static const uint8 sgb[256];
} bootROM;
uint8 mmio_read(uint16 addr);
void mmio_write(uint16 addr, uint8 data);
void init(Interface*);
void power();
void run();
Interface *interface;
unsigned clocks_executed;
};
#include <gameboy/interface/interface.hpp>
extern System system;