diff options
author | Jeff Law <law@redhat.com> | 1996-11-25 18:46:06 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-11-25 18:46:06 +0000 |
commit | 76783aa31cd58d78cc9383532c75577902b2632e (patch) | |
tree | 6d35720efcb1137db504016f3b6af5881a21e637 /opcodes | |
parent | a0cb629bdee9ef16f392d035e82d2d39e3d2b4f6 (diff) | |
download | gdb-76783aa31cd58d78cc9383532c75577902b2632e.zip gdb-76783aa31cd58d78cc9383532c75577902b2632e.tar.gz gdb-76783aa31cd58d78cc9383532c75577902b2632e.tar.bz2 |
* mn10300-dis.c (disassemble): Use '$' instead of '%' for
register prefix.
It's easier for the assembler...
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 3 | ||||
-rw-r--r-- | opcodes/mn10300-dis.c | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index c408514..1627e05 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,8 @@ Mon Nov 25 11:17:01 1996 Jeffrey A Law (law@cygnus.com) + * mn10300-dis.c (disassemble): Use '$' instead of '%' for + register prefix. + * mn10300-dis.c (disassemble): Prefix registers with '%'. Wed Nov 20 10:37:13 1996 Jeffrey A Law (law@cygnus.com) diff --git a/opcodes/mn10300-dis.c b/opcodes/mn10300-dis.c index d1e0724..9ed8327 100644 --- a/opcodes/mn10300-dis.c +++ b/opcodes/mn10300-dis.c @@ -333,24 +333,24 @@ disassemble (memaddr, info, insn, extension, size) { value = ((insn >> (operand->shift + extra_shift)) & ((1 << operand->bits) - 1)); - (*info->fprintf_func) (info->stream, "%%d%d", value); + (*info->fprintf_func) (info->stream, "$d%d", value); } else if ((operand->flags & MN10300_OPERAND_AREG) != 0) { value = ((insn >> (operand->shift + extra_shift)) & ((1 << operand->bits) - 1)); - (*info->fprintf_func) (info->stream, "%%a%d", value); + (*info->fprintf_func) (info->stream, "$a%d", value); } else if ((operand->flags & MN10300_OPERAND_SP) != 0) - (*info->fprintf_func) (info->stream, "%%sp"); + (*info->fprintf_func) (info->stream, "$sp"); else if ((operand->flags & MN10300_OPERAND_PSW) != 0) - (*info->fprintf_func) (info->stream, "%%psw"); + (*info->fprintf_func) (info->stream, "$psw"); else if ((operand->flags & MN10300_OPERAND_MDR) != 0) - (*info->fprintf_func) (info->stream, "%%mdr"); + (*info->fprintf_func) (info->stream, "$mdr"); else if ((operand->flags & MN10300_OPERAND_PAREN) != 0) { |