1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-27 05:32:04 +00:00

be stricter about ACIA memory addresses

This commit is contained in:
steve 2024-02-24 13:02:27 +00:00
parent 3af6b4d3f7
commit 2baab0f856

View File

@ -50,7 +50,11 @@ void ACIA::write_data(uint8_t b) {
} }
uint8_t ACIA::read(Memory::address a) { uint8_t ACIA::read(Memory::address a) {
return (a & 1)? read_data(): read_status(); if (a == 0)
return read_status();
if (a == 1)
return read_data();
return 0;
} }
uint8_t ACIA::read_data() { uint8_t ACIA::read_data() {