QoL improvements in interpreter
authorMartin Bilek <mbilek06@gmail.com>
Fri, 15 Nov 2024 21:40:40 +0000 (22:40 +0100)
committerMartin Bilek <mbilek06@gmail.com>
Fri, 15 Nov 2024 21:40:40 +0000 (22:40 +0100)
interpreter.c

index 4ed9125b63cf813a7a36469fd1f47dd20ef0c344..fd16481920ec3b550dab4460c6f570b225d60fee 100644 (file)
@@ -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);
        
 }