about summary refs log tree commit diff stats
path: root/subx/026labels.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-27 11:55:47 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-27 11:55:47 -0700
commit069ed1c879866673ce51dfccfb6b78f8055aeb4d (patch)
treed36c4b00786bb8277349c13a46ef407941496c9d /subx/026labels.cc
parent7c22499166a6a1c8cd43b23f360ff4942d435178 (diff)
downloadmu-069ed1c879866673ce51dfccfb6b78f8055aeb4d.tar.gz
4442
Clean up trace levels everywhere in SubX.
Diffstat (limited to 'subx/026labels.cc')
-rw-r--r--subx/026labels.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/subx/026labels.cc b/subx/026labels.cc
index 97d5429d..fc52fe74 100644
--- a/subx/026labels.cc
+++ b/subx/026labels.cc
@@ -9,7 +9,7 @@
           # 1-3 bytes   3 bits              2 bits          3 bits        3 bits    3 bits    2 bits    2 bits      0/1/2/4 bytes   0/1/2/4 bytes
 loop:
             05                                                                                                                      0x0d0c0b0a/imm32  # add to EAX
-+label: label 'loop' is at address 1
++translate: label 'loop' is at address 1
 
 :(before "End One-time Setup")
 Transform.push_back(replace_labels);
@@ -53,7 +53,7 @@ void compute_addresses_for_labels(const segment& code, map<string, uint32_t> add
           raise << "'" << to_string(inst) << "': labels can only be the first word in a line.\n" << end();
         string label = curr.data.substr(0, SIZE(curr.data)-1);
         put(address, label, current_byte);
-        trace(99, "label") << "label '" << label << "' is at address " << (current_byte+code.start) << end();
+        trace(99, "translate") << "label '" << label << "' is at address " << (current_byte+code.start) << end();
         // no modifying current_byte; label definitions won't be in the final binary
       }
     }
@@ -90,6 +90,6 @@ loop2:
             05                                                                                                                      0x0d0c0b0a/imm32  # add to EAX
 loop3:
             f
-+label: label 'loop' is at address 1
-+label: label 'loop2' is at address 1
-+label: label 'loop3' is at address 6
++translate: label 'loop' is at address 1
++translate: label 'loop2' is at address 1
++translate: label 'loop3' is at address 6