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:
parent
3af6b4d3f7
commit
2baab0f856
6
acia.cpp
6
acia.cpp
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user