From 1fc135528301fa937dd4eb7c7ce508cebacc12b5 Mon Sep 17 00:00:00 2001 From: Martin Bilek Date: Fri, 15 Nov 2024 22:40:40 +0100 Subject: [PATCH] QoL improvements in interpreter --- interpreter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interpreter.c b/interpreter.c index 4ed9125..fd16481 100644 --- a/interpreter.c +++ b/interpreter.c @@ -63,11 +63,19 @@ int main(int argc, char *argv[]) fflush(stdout); (*opcodes[instruction]) (arg1, arg2, arg3); instruction_counter++; +#ifndef DEBUG if(instruction_counter % 1024 == 0) { tigrUpdate(screen); } +#else + tigrUpdate(screen); +#endif + } printf("\nExecution halted: cause %d\n", halted_reason); + tigrUpdate(screen); + printf("Press any key to exit..."); + getc(stdin); } -- 2.25.1