mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix strobe pass-through
This commit is contained in:
parent
b687dd9ac3
commit
2958fe53c1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user