1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-10 21:29:33 +00:00

vcs: fixed Javatari.room.console.onBreakpointHit is not a function

This commit is contained in:
Steven Hugg 2021-05-13 14:45:48 -05:00
parent 4dfef4ca22
commit df742e5297

View File

@ -85,7 +85,7 @@ class VCSPlatform extends BasePlatform {
self.probe.logNewFrame();
this.oldClockPulse();
// look for KIL instruction
if (Javatari.room.console.getCPUState().o == 0x02) {
if (Javatari.room.console.getCPUState().o == 0x02 && Javatari.room.console.onBreakpointHit != null) {
Javatari.room.console.onBreakpointHit(Javatari.room.console.saveState());
//throw new EmuHalt("CPU STOPPED"); // TODO: requires browser reload
}