1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +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) { if(address&1) {
clear_interrupt_cause(ReceiveNeedsRead); clear_interrupt_cause(ReceiveNeedsRead);
received_data_ |= NoValueMask; received_data_ |= NoValueMask;
return uint8_t(received_data_);
} else { } else {
clear_interrupt_cause(StatusNeedsRead); clear_interrupt_cause(StatusNeedsRead);
return return
@ -42,7 +43,6 @@ uint8_t ACIA::read(int address) {
// b6: parity error. // b6: parity error.
// b7: IRQ state. // b7: IRQ state.
} }
return 0x00;
} }
void ACIA::write(int address, uint8_t value) { void ACIA::write(int address, uint8_t value) {