diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-27 11:55:47 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-27 11:55:47 -0700 |
commit | 069ed1c879866673ce51dfccfb6b78f8055aeb4d (patch) | |
tree | d36c4b00786bb8277349c13a46ef407941496c9d /subx/015index_addressing.cc | |
parent | 7c22499166a6a1c8cd43b23f360ff4942d435178 (diff) | |
download | mu-069ed1c879866673ce51dfccfb6b78f8055aeb4d.tar.gz |
4442
Clean up trace levels everywhere in SubX.
Diffstat (limited to 'subx/015index_addressing.cc')
-rw-r--r-- | subx/015index_addressing.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/015index_addressing.cc b/subx/015index_addressing.cc index 13287709..b1b7e563 100644 --- a/subx/015index_addressing.cc +++ b/subx/015index_addressing.cc @@ -26,22 +26,22 @@ uint32_t effective_address_from_sib(uint8_t mod) { uint32_t addr = 0; if (base != EBP || mod != 0) { addr = Reg[base].u; - trace(2, "run") << "effective address is initially 0x" << std::hex << addr << " (" << rname(base) << ")" << end(); + trace(90, "run") << "effective address is initially 0x" << std::hex << addr << " (" << rname(base) << ")" << end(); } else { // base == EBP && mod == 0 addr = imm32(); // ignore base - trace(2, "run") << "effective address is initially 0x" << std::hex << addr << " (disp32)" << end(); + trace(90, "run") << "effective address is initially 0x" << std::hex << addr << " (disp32)" << end(); } uint8_t index = (sib>>3)&0x7; if (index == ESP) { // ignore index and scale - trace(2, "run") << "effective address is 0x" << std::hex << addr << end(); + trace(90, "run") << "effective address is 0x" << std::hex << addr << end(); } else { uint8_t scale = (1 << (sib>>6)); addr += Reg[index].i*scale; // treat index register as signed. Maybe base as well? But we'll always ensure it's non-negative. - trace(2, "run") << "effective address is 0x" << std::hex << addr << " (after adding " << rname(index) << "*" << NUM(scale) << ")" << end(); + trace(90, "run") << "effective address is 0x" << std::hex << addr << " (after adding " << rname(index) << "*" << NUM(scale) << ")" << end(); } return addr; } |