diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-31 23:44:51 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-31 23:44:51 -0700 |
commit | adceed3d209fc22783acacce3aaef8ff43c1b038 (patch) | |
tree | e9a582b968e9bbb7eec38ef33fe2d0f43271ba1a | |
parent | d0016e126f9b41a35823370d392d9d7821f26a85 (diff) | |
download | mu-adceed3d209fc22783acacce3aaef8ff43c1b038.tar.gz |
.
-rw-r--r-- | 038---literal_strings.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/038---literal_strings.cc b/038---literal_strings.cc index ecc80176..547747a6 100644 --- a/038---literal_strings.cc +++ b/038---literal_strings.cc @@ -26,6 +26,8 @@ Transform.push_back(transform_literal_strings); :(before "End Globals") int Next_auto_global = 1; +:(before "End Reset") +Next_auto_global = 1; :(code) void transform_literal_strings(program& p) { trace(3, "transform") << "-- move literal strings to data segment" << end(); @@ -133,6 +135,7 @@ void parse_instruction_character_by_character(const string& line_data, vector<li if (c == '"') break; } result.words.back().data = d.str(); + result.words.back().original = d.str(); // slurp metadata ostringstream m; while (!isspace(in.peek()) && has_data(in)) { // peek can sometimes trigger eof(), so do it first |