Fix strobe pass-through

This commit is contained in:
Will Scullin 2021-03-07 04:56:41 -08:00
parent b687dd9ac3
commit 2958fe53c1
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -538,8 +538,8 @@ export default class MMU implements Memory, Restorable<MMUState> {
// Status registers // Status registers
_accessStatus(off: byte, _val?: byte) { _accessStatus(off: byte, val?: byte) {
let result = 0; let result = undefined;
switch(off) { switch(off) {
case LOC.BSRBANK2: case LOC.BSRBANK2:
@ -596,6 +596,8 @@ export default class MMU implements Memory, Restorable<MMUState> {
case LOC.RDALTCH: case LOC.RDALTCH:
result = this.vm.isAltChar() ? 0x80 : 0x0; result = this.vm.isAltChar() ? 0x80 : 0x0;
break; break;
default:
result = this.io.ioSwitch(off, val);
} }
return result; return result;
@ -773,7 +775,7 @@ export default class MMU implements Memory, Restorable<MMUState> {
case 0x1: case 0x1:
if (writeMode) { if (writeMode) {
this.io.ioSwitch(off); this.io.ioSwitch(off, val);
} else { } else {
result = this._accessStatus(off, val); result = this._accessStatus(off, val);
} }