* mn10300-dis.c (disassemble): Use '$' instead of '%' for

register prefix.
It's easier for the assembler...
This commit is contained in:
Jeff Law 1996-11-25 18:46:06 +00:00
parent a0cb629bde
commit 76783aa31c
2 changed files with 8 additions and 5 deletions

View File

@ -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)

View File

@ -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)
{