From 91f3c58738b6baf79e62adfdedfc5557dfcf3c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20J=C3=B8rgensen?= Date: Mon, 2 May 2022 20:51:53 +0200 Subject: [PATCH] Fix timing problems on some C64s --- firmware/stm32f4xx/c64_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/stm32f4xx/c64_interface.h b/firmware/stm32f4xx/c64_interface.h index 0768813..da0213d 100644 --- a/firmware/stm32f4xx/c64_interface.h +++ b/firmware/stm32f4xx/c64_interface.h @@ -134,8 +134,8 @@ static void handler(void) COMPILER_BARRIER(); \ while (DWT->CYCCNT < phi2_high); \ u32 addr = C64_ADDR_READ(); \ - COMPILER_BARRIER(); \ u32 control = C64_CONTROL_READ(); \ + COMPILER_BARRIER(); \ if (control & C64_WRITE) \ { \ if (read_handler(control, addr)) \