diff options
Diffstat (limited to 'subx/026labels.cc')
-rw-r--r-- | subx/026labels.cc | 10 |
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 |