From a654e4ecace2d506d1b10f1dde2c287ebe84ef37 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 26 Mar 2016 23:59:59 -0700 Subject: 2812 --- html/031address.cc.html | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'html/031address.cc.html') diff --git a/html/031address.cc.html b/html/031address.cc.html index abcd5945..12b53a7b 100644 --- a/html/031address.cc.html +++ b/html/031address.cc.html @@ -3,29 +3,37 @@ Mu - 031address.cc - - + + - + + + + -
+
 //: Instructions can read from addresses pointing at other locations using the
 //: 'lookup' property.
 
@@ -38,7 +46,7 @@ def main [
 ]
 +mem: storing 34 in location 3
 
-:(before "long long int base = x.value" following "vector<double> read_memory(reagent x)")
+:(before "End Preprocess read_memory(x)")
 canonize(x);
 
 //: similarly, write to addresses pointing at other locations using the
@@ -50,10 +58,10 @@ def main [
 ]
 +mem: storing 34 in location 2
 
-:(before "long long int base = x.value" following "void write_memory(reagent x, vector<double> data)")
+:(before "End Preprocess write_memory(x)")
 canonize(x);
 if (x.value == 0) {
-  raise << "can't write to location 0 in '" << to_string(current_instruction()) << "'\n" << end();
+  raise << "can't write to location 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
   return;
 }
 
@@ -217,7 +225,7 @@ def main [
   2:number <- copy 34
   3:number <- copy *1:address:number
 ]
-+parse: ingredient: 1: ("address" "number"), {"lookup": ()}
++parse: ingredient: {1: ("address" "number"), "lookup": ()}
 +mem: storing 34 in location 3
 
 :(before "End Parsing reagent")
@@ -247,7 +255,7 @@ put(Recipe_ordinal,//: grab an address, and then dump its value at intervals
 //: useful for tracking down memory corruption (writing to an out-of-bounds address)
 :(before "End Globals")
-long long int foo = -1;
+int foo = -1;
 :(before "End Primitive Recipe Declarations")
 _FOO,
 :(before "End Primitive Recipe Numbers")
@@ -268,3 +276,4 @@ put(Recipe_ordinal,
 
 
+
-- 
cgit 1.4.1-2-gfad0