about summary refs log tree commit diff stats
path: root/cpp/018address
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 20:26:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 20:26:59 -0700
commit3c435756bcd997dac981ca78c49c5100eb2211b7 (patch)
tree05524418c430239992558e5b5a82ddbdf133c60d /cpp/018address
parentb589f25a005ad00f6fd888520f9eaaddbd707617 (diff)
downloadmu-3c435756bcd997dac981ca78c49c5100eb2211b7.tar.gz
932 - clean up comments in the tangled c++
Diffstat (limited to 'cpp/018address')
-rw-r--r--cpp/018address8
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