Search
lxdream.org :: lxdream/src/x86dasm/i386-dis.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/i386-dis.c
changeset 1263:b3de98d19faf
prev1094:d2324eb67223
author nkeynes
date Tue Mar 06 09:04:34 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Break host disassembly bits out of sh4x86.in, and move the generic disasm
bits from x86dasm to xlat.
file annotate diff log raw
1.1 --- a/src/x86dasm/i386-dis.c Mon Dec 21 08:23:54 2009 +1000
1.2 +++ b/src/x86dasm/i386-dis.c Tue Mar 06 09:04:34 2012 +1000
1.3 @@ -33,7 +33,7 @@
1.4
1.5 #include "x86dasm/dis-asm.h"
1.6 #include "x86dasm/sysdep.h"
1.7 -#include "x86dasm/x86dasm.h"
1.8 +#include "xlat/xlatdasm.h"
1.9 #include "gettext.h"
1.10
1.11 #define MAXLEN 20
1.12 @@ -3175,7 +3175,7 @@
1.13 if (!intel_syntax)
1.14 if (mod != 0 || (base & 7) == 5)
1.15 {
1.16 - x86_print_symbolic_operand (scratchbuf, !riprel, disp);
1.17 + xlat_print_symbolic_operand (scratchbuf, !riprel, disp);
1.18 oappend (scratchbuf);
1.19 if (riprel)
1.20 {
1.21 @@ -3281,7 +3281,7 @@
1.22 *obufp = '\0';
1.23 }
1.24
1.25 - x86_print_symbolic_operand (scratchbuf, 0, disp);
1.26 + xlat_print_symbolic_operand (scratchbuf, 0, disp);
1.27 oappend (scratchbuf);
1.28 }
1.29 }
1.30 @@ -3301,7 +3301,7 @@
1.31 oappend (names_seg[ds_reg - es_reg]);
1.32 oappend (":");
1.33 }
1.34 - x86_print_symbolic_operand (scratchbuf, 1, disp);
1.35 + xlat_print_symbolic_operand (scratchbuf, 1, disp);
1.36 oappend (scratchbuf);
1.37 }
1.38 }
1.39 @@ -3334,7 +3334,7 @@
1.40 if (!intel_syntax)
1.41 if (mod != 0 || (rm & 7) == 6)
1.42 {
1.43 - x86_print_symbolic_operand (scratchbuf, 0, disp);
1.44 + xlat_print_symbolic_operand (scratchbuf, 0, disp);
1.45 oappend (scratchbuf);
1.46 }
1.47
1.48 @@ -3632,7 +3632,7 @@
1.49
1.50 op &= mask;
1.51 scratchbuf[0] = '$';
1.52 - x86_print_symbolic_operand (scratchbuf + 1, 1, op);
1.53 + xlat_print_symbolic_operand (scratchbuf + 1, 1, op);
1.54 oappend (scratchbuf + intel_syntax);
1.55 scratchbuf[0] = '\0';
1.56 }
1.57 @@ -3683,7 +3683,7 @@
1.58
1.59 op &= mask;
1.60 scratchbuf[0] = '$';
1.61 - x86_print_symbolic_operand (scratchbuf + 1, 1, op);
1.62 + xlat_print_symbolic_operand (scratchbuf + 1, 1, op);
1.63 oappend (scratchbuf + intel_syntax);
1.64 scratchbuf[0] = '\0';
1.65 }
1.66 @@ -3733,7 +3733,7 @@
1.67 }
1.68
1.69 scratchbuf[0] = '$';
1.70 - x86_print_symbolic_operand (scratchbuf + 1, 1, op);
1.71 + xlat_print_symbolic_operand (scratchbuf + 1, 1, op);
1.72 oappend (scratchbuf + intel_syntax);
1.73 }
1.74
1.75 @@ -3769,7 +3769,7 @@
1.76 }
1.77 disp = (start_pc + codep - start_codep + disp) & mask;
1.78 set_op (disp, 0);
1.79 - x86_print_symbolic_operand (scratchbuf, 1, disp);
1.80 + xlat_print_symbolic_operand (scratchbuf, 1, disp);
1.81 oappend (scratchbuf);
1.82 }
1.83
1.84 @@ -3823,7 +3823,7 @@
1.85 oappend (":");
1.86 }
1.87 }
1.88 - x86_print_symbolic_operand (scratchbuf, 1, off);
1.89 + xlat_print_symbolic_operand (scratchbuf, 1, off);
1.90 oappend (scratchbuf);
1.91 }
1.92
1.93 @@ -3851,7 +3851,7 @@
1.94 oappend (":");
1.95 }
1.96 }
1.97 - x86_print_symbolic_operand (scratchbuf, 1, off);
1.98 + xlat_print_symbolic_operand (scratchbuf, 1, off);
1.99 oappend (scratchbuf);
1.100 }
1.101
.