boots prodos 2.4!

This commit is contained in:
Luigi Thirty 2017-08-10 02:11:39 -04:00
parent 181b98b95c
commit 6a149b3365
2 changed files with 6 additions and 4 deletions

View File

@ -63,6 +63,11 @@ class LanguageCard16K: NSObject, Peripheral, HasROM {
readAnyway: false,
action: actionDispatchOperation)
writeIOOverride = WriteOverride(start: UInt16(0xC080 + (0x10 * slotNumber)),
end: UInt16(0xC08F + (0x10 * slotNumber)),
writeAnyway: false,
action: actionDispatchOperation)
readLanguageCardAddressingOverride = ReadOverride(start: UInt16(0xD000),
end: UInt16(0xFFFF),
readAnyway: false,
@ -76,6 +81,7 @@ class LanguageCard16K: NSObject, Peripheral, HasROM {
CPU.sharedInstance.memoryInterface.read_overrides.append(RDLCBNKOverride!)
CPU.sharedInstance.memoryInterface.read_overrides.append(RDLCRAMOverride!)
CPU.sharedInstance.memoryInterface.read_overrides.append(readIOOverride!)
CPU.sharedInstance.memoryInterface.write_overrides.append(writeIOOverride!)
CPU.sharedInstance.memoryInterface.read_overrides.append(readLanguageCardAddressingOverride!)
CPU.sharedInstance.memoryInterface.write_overrides.append(writeLanguageCardAddressingOverride!)
}

View File

@ -259,10 +259,6 @@ final class CPU: NSObject {
throw CPUExceptions.invalidInstruction
}
if(program_counter == 0x102F) {
print("$102F")
}
self.old_program_counter = self.program_counter
operation!.action(CPU.sharedInstance, operation!.addressingMode)