diff --git a/src/execute.c b/src/execute.c index 6d526e8..2fad22d 100644 --- a/src/execute.c +++ b/src/execute.c @@ -3,6 +3,7 @@ #else #include #endif +#include #include #include #include @@ -619,7 +620,13 @@ void execute(Stack *stack, Stack *originstack, char *modname) if (!strcmp(NAME, "dump")) { for (int i = 0; i < stack->pointer; i++) - printf("%d: %d\n", i, stack->memory[i]); + { + // Almost all printable ASCII symbols are bigger than 32 and smaller than 126 + if (stack->memory[i] >= 32 && stack->memory[i] <= 126) + printf("%d: (%c) %d\n", i, stack->memory[i], stack->memory[i]); + else + printf("%d: %d\n", i, stack->memory[i]); + } continue; }