vcs: scanline io viewer logs i/o only

This commit is contained in:
Steven Hugg 2022-02-15 14:01:46 -06:00
parent fbe07c33d2
commit 10baf3abc6
2 changed files with 7 additions and 3 deletions

View File

@ -704,7 +704,7 @@ export class ScanlineIOView extends ProbeViewBaseBase {
var sym = platform.debugSymbols.addr2symbol[addr];
if (sym) line[-1] = sym;
break;
case ProbeFlags.MEM_WRITE:
//case ProbeFlags.MEM_WRITE:
case ProbeFlags.IO_READ:
case ProbeFlags.IO_WRITE:
case ProbeFlags.VRAM_READ:

View File

@ -386,13 +386,17 @@ class VCSPlatform extends BasePlatform {
bus.oldRead = bus.read;
bus.read = function(a) {
var v = this.oldRead(a);
probe.logRead(a,v);
if (a < 0x80) probe.logIORead(a,v);
else if (a > 0x280 && a < 0x300) probe.logIORead(a,v);
else probe.logRead(a,v);
return v;
}
bus.oldWrite = bus.write;
bus.write = function(a,v) {
this.oldWrite(a,v);
probe.logWrite(a,v);
if (a < 0x80) probe.logIOWrite(a,v);
else if (a > 0x280 && a < 0x300) probe.logIOWrite(a,v);
else probe.logWrite(a,v);
}
}
return rec;