diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 20:26:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 20:26:59 -0700 |
commit | 3c435756bcd997dac981ca78c49c5100eb2211b7 (patch) | |
tree | 05524418c430239992558e5b5a82ddbdf133c60d /cpp/018address | |
parent | b589f25a005ad00f6fd888520f9eaaddbd707617 (diff) | |
download | mu-3c435756bcd997dac981ca78c49c5100eb2211b7.tar.gz |
932 - clean up comments in the tangled c++
Diffstat (limited to 'cpp/018address')
-rw-r--r-- | cpp/018address | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/018address b/cpp/018address index bdf10685..cd4f180e 100644 --- a/cpp/018address +++ b/cpp/018address @@ -1,5 +1,6 @@ +//: Instructions can read from addresses pointing at other locations using the +//: 'deref' property. :(scenario "copy_indirect") -# Instructions can read from addresses pointing at other locations using the 'deref' property. recipe main [ 1:address:integer <- copy 2:literal 2:integer <- copy 34:literal @@ -29,8 +30,9 @@ vector<int> read_memory(reagent x) { return result; } +//: similarly, write to addresses pointing at other locations using the +//: 'deref' property :(scenario "store_indirect") -# similarly, write to addresses pointing at other locations using the 'deref' property recipe main [ 1:address:integer <- copy 2:literal 1:address:integer/deref <- copy 34:literal @@ -95,8 +97,8 @@ reagent deref(reagent x) { return result; } +//: 'get' can read from record address :(scenario "get_indirect") -# 'get' can read from record address recipe main [ 1:integer <- copy 2:literal 2:integer <- copy 34:literal |