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:
parent
c486fb6cf1
commit
50c1a653e2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user