1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Exposes memory control.

Machine now runs as far as trying to interact with Nick.
This commit is contained in:
Thomas Harte 2021-06-14 21:45:12 -04:00
parent 853914480c
commit 3eb4dd74a2

View File

@ -56,13 +56,35 @@ class ConcreteMachine:
default: break; default: break;
case CPU::Z80::PartialMachineCycle::Input: case CPU::Z80::PartialMachineCycle::Input:
printf("Unhandled input: %04x\n", address); switch(address & 0xff) {
assert(false); default:
printf("Unhandled input: %04x\n", address);
assert(false);
break;
case 0xb0: *cycle.value = pages_[0]; break;
case 0xb1: *cycle.value = pages_[1]; break;
case 0xb2: *cycle.value = pages_[2]; break;
case 0xb3: *cycle.value = pages_[3]; break;
}
break; break;
case CPU::Z80::PartialMachineCycle::Output: case CPU::Z80::PartialMachineCycle::Output:
printf("Unhandled output: %04x\n", address); switch(address & 0xff) {
assert(false); default:
printf("Unhandled output: %04x\n", address);
assert(false);
break;
case 0xb0: page<0>(*cycle.value); break;
case 0xb1: page<1>(*cycle.value); break;
case 0xb2: page<2>(*cycle.value); break;
case 0xb3: page<3>(*cycle.value); break;
case 0xbf:
printf("TODO: Dave sysconfig %02x\n", *cycle.value);
break;
}
break; break;
case CPU::Z80::PartialMachineCycle::Read: case CPU::Z80::PartialMachineCycle::Read: