ibmpc: Return host_send when receiving

- To avoid missing key stroke during command sending
- LED lock indicators can be out of sync due to this
This commit is contained in:
tmk 2021-10-27 00:34:34 +09:00
parent c010a9c3ee
commit 96e722ed77

View file

@ -92,6 +92,13 @@ int16_t IBMPC::host_send(uint8_t data)
dprintf("w%02X ", data);
// Return when receiving data
//if (isr_state & 0x0FFF) {
if (isr_state != 0x8000) {
dprintf("isr:%04X ", isr_state);
return -1;
}
int_off();
RETRY: