about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-11 07:45:45 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-11 07:45:45 -0700
commit6f812e6ea125aadd2e0891b094902b34924dccd0 (patch)
tree13bb9407ac6239f9c02d94fc9de051368a00d6dc
parent262f6ea81bcd058e6507dfca8cc7e72251fa6f34 (diff)
downloadmu-6f812e6ea125aadd2e0891b094902b34924dccd0.tar.gz
4342
-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);