From a39e209394b3819667ea8f8b8b628d7599a64f59 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Sep 2024 21:23:23 +0200 Subject: [PATCH] move increasing t1_count here otherwise it would never be --- src/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emulator.c b/src/emulator.c index 16e6b37..294d0a2 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -225,7 +225,7 @@ static void EmulatorLoop( void ) /* DrawLcd(); */ /* Emulator Interrupt Request */ - if ( ( t1_count & INT_T1_MASK ) == 0 && emulator_int_req ) { + if ( ( t1_count++ & INT_T1_MASK ) == 0 && emulator_int_req ) { ChfCondition CPU_I_EMULATOR_INT, CHF_INFO ChfEnd; ChfSignal(); }