mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Fix 1: _horizontalTimer should be treated as read only out here.
This commit is contained in:
parent
6f78ecdc9c
commit
4d1e410150
@ -129,12 +129,9 @@ void Machine::perform_bus_operation(CPU6502::BusOperation operation, uint16_t ad
|
||||
case 1: _vBlankEnabled = !!(*value & 0x02); break;
|
||||
|
||||
case 2: {
|
||||
|
||||
int pixelsToRun = 228 - _horizontalTimer;
|
||||
_piaTimerValue -= pixelsToRun;
|
||||
if (pixelsToRun > 160) pixelsToRun = 160;
|
||||
output_pixels(pixelsToRun);
|
||||
_horizontalTimer = 228;
|
||||
const int cyclesToRunFor = 228 - _horizontalTimer;
|
||||
_piaTimerValue -= cyclesToRunFor;
|
||||
output_pixels(cyclesToRunFor);
|
||||
} break;
|
||||
case 3: _horizontalTimer = 0; break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user