bsnes/gameboy/system/system.cpp

27 lines
321 B
C++
Raw Normal View History

#include <gameboy.hpp>
#define SYSTEM_CPP
namespace GameBoy {
System system;
void System::init(Interface *interface_) {
interface = interface_;
}
void System::power() {
cpu.power();
scheduler.init();
}
void System::reset() {
cpu.reset();
scheduler.init();
}
void System::run() {
scheduler.enter();
}
}