From: Martin Bilek Date: Fri, 15 Nov 2024 21:40:40 +0000 (+0100) Subject: QoL improvements in interpreter X-Git-Url: https://git.bylex.cz/?a=commitdiff_plain;h=1fc135528301fa937dd4eb7c7ce508cebacc12b5;p=maturita.git QoL improvements in interpreter --- 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); }