1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-05 02:29:31 +00:00

vcs: fixed KIL breakpoint bug, analysis has 76*4 cycles max

This commit is contained in:
Steven Hugg 2021-04-22 14:50:23 -05:00
parent c486fb6cf1
commit 50c1a653e2
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ abstract class CodeAnalyzer6502 implements CodeAnalyzer {
export class CodeAnalyzer_vcs extends CodeAnalyzer6502 {
constructor(platform : Platform) {
super(platform);
this.MAX_CLOCKS = this.START_CLOCKS = 76*2; // 2 scanlines
this.MAX_CLOCKS = this.START_CLOCKS = 76*4; // 4 scanlines
this.WRAP_CLOCKS = false;
}
}

View File

@ -87,7 +87,7 @@ class VCSPlatform extends BasePlatform {
// look for KIL instruction
if (Javatari.room.console.getCPUState().o == 0x02) {
Javatari.room.console.onBreakpointHit(Javatari.room.console.saveState());
throw new EmuHalt("CPU STOPPED");
//throw new EmuHalt("CPU STOPPED"); // TODO: requires browser reload
}
}
// intercept TIA end of line