bsnes/higan/sfc/expansion/expansion.cpp

19 lines
303 B
C++

#include <sfc/sfc.hpp>
namespace SuperFamicom {
Expansion::Expansion() {
if(!handle()) create(Expansion::Enter, 1);
}
auto Expansion::Enter() -> void {
while(true) scheduler.synchronize(), peripherals.expansionPort->main();
}
auto Expansion::main() -> void {
step(1);
synchronize(cpu);
}
}