1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Fixes return value when reading received data.

This commit is contained in:
Thomas Harte 2019-11-02 21:25:00 -04:00
parent bf7e9cfd62
commit 14e790746b

View File

@ -23,6 +23,7 @@ uint8_t ACIA::read(int address) {
if(address&1) {
clear_interrupt_cause(ReceiveNeedsRead);
received_data_ |= NoValueMask;
return uint8_t(received_data_);
} else {
clear_interrupt_cause(StatusNeedsRead);
return
@ -42,7 +43,6 @@ uint8_t ACIA::read(int address) {
// b6: parity error.
// b7: IRQ state.
}
return 0x00;
}
void ACIA::write(int address, uint8_t value) {