From a598847eb95690881fdb04ddae73564def0b8caa Mon Sep 17 00:00:00 2001 From: Till Harbaum Date: Sun, 22 Nov 2015 21:37:57 +0100 Subject: [PATCH] [ATARI ST] CPU bug fix. Fixes MAGIC620 ROM --- cores/mist/TG68KdotC_Kernel.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/mist/TG68KdotC_Kernel.vhd b/cores/mist/TG68KdotC_Kernel.vhd index 7b5d8e7..75f80b1 100644 --- a/cores/mist/TG68KdotC_Kernel.vhd +++ b/cores/mist/TG68KdotC_Kernel.vhd @@ -1660,7 +1660,7 @@ PROCESS (clk, cpu, OP1out, OP2out, opcode, exe_condition, nextpass, micro_state, trapmake <= '1'; END IF; ELSE --chk - IF opcode(7)='1' THEN + IF opcode(7)='1' AND opcode(5 downto 0) /= "111111" THEN datatype <= "01"; --Word set(trap_chk) <= '1'; IF (c_out(1)='0' OR OP1out(15)='1' OR OP2out(15)='1') AND exec(opcCHK)='1' THEN