Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/opcodes print register offsets in decimal...



details:   https://anonhg.NetBSD.org/src/rev/1f10de3e659d
branches:  trunk
changeset: 509407:1f10de3e659d
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 03 17:23:15 2001 +0000

description:
print register offsets in decimal since they are signed.

diffstat:

 gnu/dist/toolchain/opcodes/vax-dis.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 8de59d048e5c -r 1f10de3e659d gnu/dist/toolchain/opcodes/vax-dis.c
--- a/gnu/dist/toolchain/opcodes/vax-dis.c      Thu May 03 17:12:52 2001 +0000
+++ b/gnu/dist/toolchain/opcodes/vax-dis.c      Thu May 03 17:23:15 2001 +0000
@@ -284,7 +284,7 @@
       if (reg == 0xF)
        (*info->print_address_func) (addr + 2 + NEXTBYTE (p), info);
       else
-       (*info->fprintf_func) (info->stream, "0x%x(%s)", NEXTBYTE (p),
+       (*info->fprintf_func) (info->stream, "%d(%s)", NEXTBYTE (p),
                               reg_names[reg]);
       break;
     case 0xD0: /* displacement word deferred:  *displ(Rn) */
@@ -293,7 +293,7 @@
       if (reg == 0xF)
        (*info->print_address_func) (addr + 3 + NEXTWORD (p), info);
       else
-       (*info->fprintf_func) (info->stream, "0x%x(%s)", NEXTWORD (p),
+       (*info->fprintf_func) (info->stream, "%d(%s)", NEXTWORD (p),
                               reg_names[reg]);
       break;
     case 0xF0: /* displacement long deferred:  *displ(Rn) */
@@ -302,7 +302,7 @@
       if (reg == 0xF)
        (*info->print_address_func) (addr + 5 + NEXTLONG (p), info);
       else
-       (*info->fprintf_func) (info->stream, "0x%x(%s)", NEXTLONG (p),
+       (*info->fprintf_func) (info->stream, "%d(%s)", NEXTLONG (p),
                               reg_names[reg]);
       break;
     }



Home | Main Index | Thread Index | Old Index