From 27d52c67fcbb19868e601f969dd13bfba5cbf94b Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 21 Jul 2018 09:08:47 +0800 Subject: [PATCH] T80: fix interrupt ack after IN/OUT instructions. --- t80/T80.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t80/T80.vhd b/t80/T80.vhd index 44ffe2e..0f8d80d 100644 --- a/t80/T80.vhd +++ b/t80/T80.vhd @@ -1024,12 +1024,13 @@ begin elsif rising_edge(CLK_n) then if CEN = '1' then + Auto_Wait_t2 <= Auto_Wait_t1; if T_Res = '1' then Auto_Wait_t1 <= '0'; + Auto_Wait_t2 <= '0'; else Auto_Wait_t1 <= Auto_Wait or IORQ_i; end if; - Auto_Wait_t2 <= Auto_Wait_t1; No_BTR <= (I_BT and (not IR(4) or not F(Flag_P))) or (I_BC and (not IR(4) or F(Flag_Z) or not F(Flag_P))) or (I_BTR and (not IR(4) or F(Flag_Z)));