mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-09-27 08:54:48 +00:00
vcs: fixed Javatari.room.console.onBreakpointHit is not a function
This commit is contained in:
parent
4dfef4ca22
commit
df742e5297
@ -85,7 +85,7 @@ class VCSPlatform extends BasePlatform {
|
|||||||
self.probe.logNewFrame();
|
self.probe.logNewFrame();
|
||||||
this.oldClockPulse();
|
this.oldClockPulse();
|
||||||
// look for KIL instruction
|
// 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());
|
Javatari.room.console.onBreakpointHit(Javatari.room.console.saveState());
|
||||||
//throw new EmuHalt("CPU STOPPED"); // TODO: requires browser reload
|
//throw new EmuHalt("CPU STOPPED"); // TODO: requires browser reload
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user