From 35eb92c45c6edbccfa792e4b240e55deb71d73c1 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Wed, 29 Aug 2018 22:07:20 +0200 Subject: [PATCH] C16: add back TH's fix for the c1541 CPU clock divider --- cores/c16/c1541/c1541_logic.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/c16/c1541/c1541_logic.vhd b/cores/c16/c1541/c1541_logic.vhd index bb575b1..7bb8743 100644 --- a/cores/c16/c1541/c1541_logic.vhd +++ b/cores/c16/c1541/c1541_logic.vhd @@ -122,7 +122,8 @@ begin if count(4 downto 0) = "01000" then clk_1M_pulse <= '1'; end if; - if count = "000100000" then -- DAR divide by 33 (otherwise real c64 miss EOI acknowledge) + -- if count = "000100000" then -- DAR divide by 33 (otherwise real c64 miss EOI acknowledge) + if count = "000011111" then -- TH divide by 32 count := (others => '0'); -- DAR else -- DAR count := std_logic_vector(unsigned(count) + 1);