mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 18:33:11 +00:00
apple2: repair "DOS fake" bytes after loadROM
This commit is contained in:
parent
7071f70bb2
commit
fc59dd30c3
@ -119,8 +119,6 @@ export class AppleII extends BasicScanlineMachine implements AcceptsBIOS {
|
||||
constructor() {
|
||||
super();
|
||||
this.loadBIOS(new lzgmini().decode(stringToByteArray(atob(APPLEIIGO_LZG))));
|
||||
this.ram[0xbf00] = 0x4c; // fake DOS detect for C
|
||||
this.ram[0xbf6f] = 0x01; // fake DOS detect for C
|
||||
this.connectCPUMemoryBus(this);
|
||||
}
|
||||
saveState() : AppleIIState {
|
||||
@ -167,6 +165,8 @@ export class AppleII extends BasicScanlineMachine implements AcceptsBIOS {
|
||||
this.bios = Uint8Array.from(data);
|
||||
this.bios[0xD39A - (0x10000 - this.bios.length)] = 0x60; // $d39a = RTS
|
||||
this.ram.set(this.bios, 0x10000 - this.bios.length);
|
||||
this.ram[0xbf00] = 0x4c; // fake DOS detect for C
|
||||
this.ram[0xbf6f] = 0x01; // fake DOS detect for C
|
||||
}
|
||||
loadROM(data) {
|
||||
if (data.length == 35*16*256) { // is it a disk image?
|
||||
|
Loading…
Reference in New Issue
Block a user