mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
373 B
C++
28 lines
373 B
C++
#include <ms/ms.hpp>
|
|
|
|
namespace MasterSystem {
|
|
|
|
PSG psg;
|
|
|
|
auto PSG::Enter() -> void {
|
|
while(true) scheduler.synchronize(), psg.main();
|
|
}
|
|
|
|
auto PSG::main() -> void {
|
|
step(1);
|
|
}
|
|
|
|
auto PSG::step(uint clocks) -> void {
|
|
Thread::step(clocks);
|
|
synchronize(cpu);
|
|
}
|
|
|
|
auto PSG::power() -> void {
|
|
}
|
|
|
|
auto PSG::reset() -> void {
|
|
create(PSG::Enter, system.colorburst());
|
|
}
|
|
|
|
}
|