projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f8230
)
Fix output issue
author
bylex
<mbilek06@gmail.com>
Wed, 25 Sep 2024 13:19:32 +0000
(15:19 +0200)
committer
bylex
<mbilek06@gmail.com>
Wed, 25 Sep 2024 13:19:32 +0000
(15:19 +0200)
\r was making the execution counter garble the last line of output
after halting
interpreter.c
patch
|
blob
|
blame
|
history
diff --git
a/interpreter.c
b/interpreter.c
index 10ab391a6037ce50b9bc54ab1f91950b7ac911c2..e771ffa5ad93b2d59c92dde8e7d2d918b30faf5d 100644
(file)
--- a/
interpreter.c
+++ b/
interpreter.c
@@
-48,6
+48,6
@@
int main(int argc, char *argv[])
(*opcodes[instruction]) (arg1, arg2, arg3);
instruction_counter++;
}
- printf("Execution halted: cause %d\n", halted_reason);
+ printf("
\n
Execution halted: cause %d\n", halted_reason);
}