mirror of https://github.com/bsnes-emu/bsnes.git
19 lines
303 B
C++
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);
|
|
}
|
|
|
|
}
|