bsnes/higan/md/ym2612/ym2612.cpp
Tim Allen 76a8ecd32a Update to v100r03 release.
byuu says:

Changelog:
- moved Thread, Scheduler, Cheat functionality into emulator/ for
  all cores
- start of actual Mega Drive emulation (two 68K instructions)

I'm going to be rather terse on MD emulation, as it's too early for any
meaningful dialogue here.
2016-07-10 15:28:26 +10:00

26 lines
374 B
C++

#include <md/md.hpp>
namespace MegaDrive {
YM2612 ym2612;
auto YM2612::Enter() -> void {
while(true) scheduler.synchronize(), ym2612.main();
}
auto YM2612::main() -> void {
step(frequency);
}
auto YM2612::step(uint clocks) -> void {
}
auto YM2612::power() -> void {
}
auto YM2612::reset() -> void {
create(YM2612::Enter, system.colorburst() * 15.0 / 7.0);
}
}