projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da04f92
)
QoL improvements in interpreter
author
Martin Bilek
<mbilek06@gmail.com>
Fri, 15 Nov 2024 21:40:40 +0000
(22:40 +0100)
committer
Martin Bilek
<mbilek06@gmail.com>
Fri, 15 Nov 2024 21:40:40 +0000
(22:40 +0100)
interpreter.c
patch
|
blob
|
blame
|
history
diff --git
a/interpreter.c
b/interpreter.c
index 4ed9125b63cf813a7a36469fd1f47dd20ef0c344..fd16481920ec3b550dab4460c6f570b225d60fee 100644
(file)
--- 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);
}