2010-12-29 11:03:42 +00:00
|
|
|
struct CPU : Processor, MMIO {
|
2010-12-28 06:03:02 +00:00
|
|
|
#include "core/core.hpp"
|
2010-12-29 11:03:42 +00:00
|
|
|
#include "mmio/mmio.hpp"
|
2010-12-28 06:03:02 +00:00
|
|
|
#include "timing/timing.hpp"
|
2010-12-28 01:53:15 +00:00
|
|
|
|
2010-12-28 06:03:02 +00:00
|
|
|
struct Status {
|
2010-12-29 11:03:42 +00:00
|
|
|
bool ime;
|
2010-12-28 06:03:02 +00:00
|
|
|
} status;
|
|
|
|
|
2010-12-29 11:03:42 +00:00
|
|
|
uint8 wram[8192];
|
|
|
|
uint8 hram[128];
|
|
|
|
|
2010-12-28 06:03:02 +00:00
|
|
|
static void Main();
|
2010-12-28 01:53:15 +00:00
|
|
|
void main();
|
|
|
|
void power();
|
|
|
|
void reset();
|
2010-12-28 06:03:02 +00:00
|
|
|
CPU();
|
2010-12-28 01:53:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CPU cpu;
|