diff options
Diffstat (limited to '032array.cc')
-rw-r--r-- | 032array.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/032array.cc b/032array.cc index e7bcd1c9..dc8c04a5 100644 --- a/032array.cc +++ b/032array.cc @@ -30,7 +30,7 @@ recipe main [ 3:number <- copy 15 4:number <- copy 16 5:address:array:number <- copy 1 - 6:array:number <- copy 5:address:array:number/deref + 6:array:number <- copy 5:address:array:number/lookup ] +mem: storing 3 in location 6 +mem: storing 14 in location 7 @@ -119,7 +119,7 @@ recipe main [ 3:number <- copy 15 4:number <- copy 16 5:address:array:number <- copy 1 - 6:number <- index 5:address:array:number/deref, 1 + 6:number <- index 5:address:array:number/lookup, 1 ] +mem: storing 15 in location 6 @@ -134,7 +134,7 @@ recipe main [ 6:number <- copy 15 7:number <- copy 16 8:address:array:point <- copy 1 - index 8:address:array:point/deref, 4 # less than size of array in locations, but larger than its length in elements + index 8:address:array:point/lookup, 4 # less than size of array in locations, but larger than its length in elements ] +warn: main: invalid index 4 @@ -149,7 +149,7 @@ recipe main [ 6:number <- copy 15 7:number <- copy 16 8:address:array:point <- copy 1 - index 8:address:array:point/deref, -1 + index 8:address:array:point/lookup, -1 ] +warn: main: invalid index -1 @@ -206,7 +206,7 @@ recipe main [ 6:number <- copy 15 7:number <- copy 16 8:address:array:point <- copy 1 - index-address 8:address:array:point/deref, 4 # less than size of array in locations, but larger than its length in elements + index-address 8:address:array:point/lookup, 4 # less than size of array in locations, but larger than its length in elements ] +warn: main: invalid index 4 @@ -221,7 +221,7 @@ recipe main [ 6:number <- copy 15 7:number <- copy 16 8:address:array:point <- copy 1 - index-address 8:address:array:point/deref, -1 + index-address 8:address:array:point/lookup, -1 ] +warn: main: invalid index -1 |