1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-26 07:29:22 +00:00

vcs: scanline io viewer logs i/o only

This commit is contained in:
Steven Hugg 2022-02-15 14:01:46 -06:00
parent 4f05ea487b
commit c7f0fd4cd0
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

@ -385,13 +385,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;