about summary refs log tree commit diff stats
path: root/cpp/018address
diff options
context:
space:
mode:
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