This commit is contained in:
Fabian 2022-06-20 08:15:48 +09:00
parent 558e0f9d7c
commit ca9aa5e872

View file

@ -118,6 +118,12 @@ function UART(cpu, port, bus)
}
else
{
if((this.ier & UART_IIR_THRI) === 0 && (out_byte & UART_IIR_THRI))
{
// re-throw THRI if it was masked
this.ThrowInterrupt(UART_IIR_THRI);
}
this.ier = out_byte & 0xF;
dbg_log("interrupt enable: " + h(out_byte), LOG_SERIAL);
this.CheckInterrupt();