From 72c4fb2ddacc9fccb8ebe8cba9d1322ddcaac017 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 30 Apr 2015 00:02:54 -0700 Subject: 1226 - bugfix in allocating arrays Also our first test of printing to screen. --- cpp/.traces/integer-to-decimal-digit-zero | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cpp/.traces/integer-to-decimal-digit-zero') diff --git a/cpp/.traces/integer-to-decimal-digit-zero b/cpp/.traces/integer-to-decimal-digit-zero index 16b62e31..e80db30e 100644 --- a/cpp/.traces/integer-to-decimal-digit-zero +++ b/cpp/.traces/integer-to-decimal-digit-zero @@ -26,17 +26,17 @@ run/0: ingredient 0 is 0 run/0: jump-if fell through run/0: instruction integer-to-decimal-string/4 run/0: {name: "result", value: 2, type: 2-5-4, properties: ["result": "address":"array":"character"]} <- new {name: "0", value: 0, type: 0, properties: ["0": "literal-string"]} -mem/0: storing 1030 in location 1003 +mem/0: storing 1031 in location 1003 run/0: instruction integer-to-decimal-string/5 run/0: reply {name: "result", value: 2, type: 2-5-4, properties: ["result": "address":"array":"character"]} -mem/0: location 1003 is 1030 -run/0: result 0 is 1030 -mem/0: storing 1030 in location 1 +mem/0: location 1003 is 1031 +run/0: result 0 is 1031 +mem/0: storing 1031 in location 1 run/0: instruction test-integer-to-decimal-digit-zero/1 run/0: {name: "2", value: 2, type: 5-4, properties: ["2": "array":"character", "raw": ]} <- copy {name: "1", value: 1, type: 2-5-4, properties: ["1": "address":"array":"character", "deref": , "raw": ]} run/0: ingredient 0 is 1 -mem/0: location 1 is 1030 -mem/0: location 1030 is 1 -mem/0: location 1031 is 48 +mem/0: location 1 is 1031 +mem/0: location 1031 is 1 +mem/0: location 1032 is 48 mem/0: storing 1 in location 2 mem/0: storing 48 in location 3 -- cgit 1.4.1-2-gfad0