diff options
Diffstat (limited to 'cpp/090debug')
-rw-r--r-- | cpp/090debug | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/090debug b/cpp/090debug index b6acae9d..a2a74d18 100644 --- a/cpp/090debug +++ b/cpp/090debug @@ -8,14 +8,14 @@ assert(Next_recipe_number < _PRINT); case _PRINT: { if (isa_literal(instructions[pc].ingredients[0])) { trace("run") << "$print: " << instructions[pc].ingredients[0].name; - cout << instructions[pc].ingredients[0].name << '\n'; + cout << instructions[pc].ingredients[0].name; break; } vector<int> result(read_memory(instructions[pc].ingredients[0])); for (size_t i = 0; i < result.size(); ++i) { trace("run") << "$print: " << result[i]; - cout << result[i] << " "; + if (i > 0) cout << " "; + cout << result[i]; } - cout << '\n'; break; } |