1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Correct reading of top byte of counter 2.

This commit is contained in:
Thomas Harte 2021-07-25 20:41:15 -04:00
parent 20da194fab
commit 34d4420e8c

View File

@ -159,7 +159,7 @@ uint8_t MOS6526<BusHandlerT, personality>::read(int address) {
case 4: return uint8_t(counter_[0].value >> 0);
case 5: return uint8_t(counter_[0].value >> 8);
case 6: return uint8_t(counter_[1].value >> 0);
case 7: return uint8_t(counter_[1].value >> 0);
case 7: return uint8_t(counter_[1].value >> 8);
// Interrupt state.
case 13: {