From: bylex Date: Wed, 25 Sep 2024 13:19:32 +0000 (+0200) Subject: Fix output issue X-Git-Url: https://git.bylex.cz/?a=commitdiff_plain;h=dce7f13461e11bfacc2a66a3c3f7f740b89e7200;p=maturita.git Fix output issue \r was making the execution counter garble the last line of output after halting --- diff --git a/interpreter.c b/interpreter.c index 10ab391..e771ffa 100644 --- 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("\nExecution halted: cause %d\n", halted_reason); }