mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-07 21:57:46 +00:00
Removes ROM mirroring above $600000.
This commit is contained in:
parent
8293b18278
commit
0ad88508f7
@ -165,8 +165,8 @@ class ConcreteMachine:
|
|||||||
memory_base = rom_.data();
|
memory_base = rom_.data();
|
||||||
word_address %= rom_.size();
|
word_address %= rom_.size();
|
||||||
|
|
||||||
// Disallow writes to ROM.
|
// Disallow writes to ROM; also it doesn't mirror above 0x60000, ever.
|
||||||
if(!(operation & Microcycle::Read)) operation = 0;
|
if(!(operation & Microcycle::Read) || word_address >= 0x300000) operation = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(operation & (Microcycle::SelectWord | Microcycle::SelectByte | Microcycle::Read | Microcycle::InterruptAcknowledge)) {
|
switch(operation & (Microcycle::SelectWord | Microcycle::SelectByte | Microcycle::Read | Microcycle::InterruptAcknowledge)) {
|
||||||
@ -286,14 +286,13 @@ class ConcreteMachine:
|
|||||||
void set_control_line_output(Port port, Line line, bool value) {
|
void set_control_line_output(Port port, Line line, bool value) {
|
||||||
/*
|
/*
|
||||||
Keyboard wiring (I believe):
|
Keyboard wiring (I believe):
|
||||||
CB2 = data (output)
|
CB2 = data (input/output)
|
||||||
CB1 = clock (input)
|
CB1 = clock (input)
|
||||||
|
|
||||||
CA2 is used for receiving RTC interrupts.
|
CA2 is used for receiving RTC interrupts.
|
||||||
CA1 is used for receiving vsync maybe?
|
CA1 is used for receiving vsync maybe?
|
||||||
*/
|
*/
|
||||||
if(port == Port::B && line == Line::Two) keyboard_.set_input(value);
|
if(port == Port::B && line == Line::Two) keyboard_.set_input(value);
|
||||||
// printf("6522 line %c%d: %c\n", port ? 'B' : 'A', int(line), value ? 't' : 'f');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user