about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-31 23:44:51 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-31 23:44:51 -0700
commitadceed3d209fc22783acacce3aaef8ff43c1b038 (patch)
treee9a582b968e9bbb7eec38ef33fe2d0f43271ba1a
parentd0016e126f9b41a35823370d392d9d7821f26a85 (diff)
downloadmu-adceed3d209fc22783acacce3aaef8ff43c1b038.tar.gz
.
-rw-r--r--038---literal_strings.cc3
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