mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Corrects raster race condition with CPU.
This commit is contained in:
@@ -339,9 +339,11 @@ class ConcreteMachine:
|
|||||||
cycle.value->halves.low = uint8_t(memory[address] >> cycle.byte_shift());
|
cycle.value->halves.low = uint8_t(memory[address] >> cycle.byte_shift());
|
||||||
break;
|
break;
|
||||||
case Microcycle::SelectWord:
|
case Microcycle::SelectWord:
|
||||||
|
video_.flush(); // TODO: (and below), a range check to determine whether this is really necesary.
|
||||||
memory[address] = cycle.value->full;
|
memory[address] = cycle.value->full;
|
||||||
break;
|
break;
|
||||||
case Microcycle::SelectByte:
|
case Microcycle::SelectByte:
|
||||||
|
video_.flush();
|
||||||
memory[address] = uint16_t(
|
memory[address] = uint16_t(
|
||||||
(cycle.value->halves.low << cycle.byte_shift()) |
|
(cycle.value->halves.low << cycle.byte_shift()) |
|
||||||
(memory[address] & cycle.untouched_byte_mask())
|
(memory[address] & cycle.untouched_byte_mask())
|
||||||
|
Reference in New Issue
Block a user