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
|
||||
|
||||
_accessStatus(off: byte, _val?: byte) {
|
||||
let result = 0;
|
||||
_accessStatus(off: byte, val?: byte) {
|
||||
let result = undefined;
|
||||
|
||||
switch(off) {
|
||||
case LOC.BSRBANK2:
|
||||
@ -596,6 +596,8 @@ export default class MMU implements Memory, Restorable<MMUState> {
|
||||
case LOC.RDALTCH:
|
||||
result = this.vm.isAltChar() ? 0x80 : 0x0;
|
||||
break;
|
||||
default:
|
||||
result = this.io.ioSwitch(off, val);
|
||||
}
|
||||
|
||||
return result;
|
||||
@ -773,7 +775,7 @@ export default class MMU implements Memory, Restorable<MMUState> {
|
||||
|
||||
case 0x1:
|
||||
if (writeMode) {
|
||||
this.io.ioSwitch(off);
|
||||
this.io.ioSwitch(off, val);
|
||||
} else {
|
||||
result = this._accessStatus(off, val);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user