diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-11 07:45:45 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-11 07:45:45 -0700 |
commit | 6f812e6ea125aadd2e0891b094902b34924dccd0 (patch) | |
tree | 13bb9407ac6239f9c02d94fc9de051368a00d6dc /subx | |
parent | 262f6ea81bcd058e6507dfca8cc7e72251fa6f34 (diff) | |
download | mu-6f812e6ea125aadd2e0891b094902b34924dccd0.tar.gz |
4342
Diffstat (limited to 'subx')
-rw-r--r-- | subx/010core.cc | 2 | ||||
-rw-r--r-- | subx/021translate.cc | 6 |
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); |