Fix output issue
authorbylex <mbilek06@gmail.com>
Wed, 25 Sep 2024 13:19:32 +0000 (15:19 +0200)
committerbylex <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

index 10ab391a6037ce50b9bc54ab1f91950b7ac911c2..e771ffa5ad93b2d59c92dde8e7d2d918b30faf5d 100644 (file)
@@ -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);
        
 }