mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-01 11:49:58 +00:00
Fixes return value when reading received data.
This commit is contained in:
parent
bf7e9cfd62
commit
14e790746b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user