From 6f812e6ea125aadd2e0891b094902b34924dccd0 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 11 Jul 2018 07:45:45 -0700 Subject: 4342 --- subx/010core.cc | 2 ++ subx/021translate.cc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'subx') 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); -- cgit 1.4.1-2-gfad0