about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/010core.cc2
-rw-r--r--subx/021translate.cc6
2 files changed, 5 insertions, 3 deletions
diff --git a/subx/010core.cc b/subx/010core.cc
index c881c52b..67fff68f 100644
--- a/subx/010core.cc
+++ b/subx/010core.cc
@@ -193,6 +193,8 @@ void run_one_instruction() {
   }
 }
 
+// Load regions of memory (called 'segments') with given hex values based on
+// '-- ' section headers.
 void load_program(const string& text_bytes) {
   istringstream in(text_bytes);
   load_program(in);
diff --git a/subx/021translate.cc b/subx/021translate.cc
index 3ea090ee..c3d780f1 100644
--- a/subx/021translate.cc
+++ b/subx/021translate.cc
@@ -3,9 +3,9 @@
 //: "compiler".
 //: Motto: Abstract nothing, check everything.
 //:
-//: Workflow: read 'source' file as a single string. Run a series of
-//: transforms on it, each converting to a new string. The final string should
-//: be just machine code and comments, suitable to pass to load_program().
+//: Workflow: read 'source' file. Run a series of transforms on it, each
+//: passing through what it doesn't understand. The final program should be
+//: just machine code, suitable to write to an ELF binary.
 
 :(before "End Types")
 typedef void (*transform_fn)(const string& input, string& output);