about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-08-13 16:10:41 -0700
committerKartik Agaram <vc@akkartik.com>2018-08-13 16:49:32 -0700
commit31338623d1d44e422c04cf886429cfa0f479d947 (patch)
tree20473e5516a83ff1bf874d9ec53469e3a2096c2b
parenta46cfb13dabc225cd1aad9d1c6fb28955316f861 (diff)
downloadmu-31338623d1d44e422c04cf886429cfa0f479d947.tar.gz
4517
We want to always print numbers in hex. This should make that a little
more comprehensive.
-rw-r--r--subx/003trace.cc1
-rw-r--r--subx/035labels.cc4
2 files changed, 3 insertions, 2 deletions
diff --git a/subx/003trace.cc b/subx/003trace.cc
index 5ab9e955..fd3d9cf6 100644
--- a/subx/003trace.cc
+++ b/subx/003trace.cc
@@ -126,6 +126,7 @@ struct trace_stream {
     curr_stream = new ostringstream;
     curr_label = label;
     curr_depth = depth;
+    (*curr_stream) << std::hex;
     return *curr_stream;
   }
 
diff --git a/subx/035labels.cc b/subx/035labels.cc
index efab173d..236c8fa2 100644
--- a/subx/035labels.cc
+++ b/subx/035labels.cc
@@ -197,11 +197,11 @@ loop:
             eb                                                                                                              $loop2/disp8
 # address 8
             eb                                                                                                              $loop3/disp8
-# address 10
+# address 0xa
  $loop3:
 +transform: label 'loop' is at address 1
 +transform: label '$loop2' is at address 1
-+transform: label '$loop3' is at address 10
++transform: label '$loop3' is at address a
 # first jump is to -7
 +transform: instruction after transform: 'eb f9'
 # second jump is to 0 (fall through)