/* Disassembler code for Renesas RX.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Contributed by Red Hat.
Written by DJ Delorie.
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
/* control register */
"psw", "pc", "usp", "fpsw", NULL, NULL, NULL, NULL,
- "bpsw", "bpc", "isp", "fintv", "intb", NULL, NULL, NULL,
+ "bpsw", "bpc", "isp", "fintv", "intb", "extb", NULL, NULL,
+ "a0", "a1", NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
static char const * condition_names[] =
{
/* condition codes */
"eq", "ne", "c", "nc", "gtu", "leu", "pz", "n",
- "ge", "lt", "gt", "le", "o", "no", "always", "never"
+ "ge", "lt", "gt", "le", "o", "no", "<invalid>", "<invalid>"
};
static const char * flag_names[] =
oper = opcode.op + *s - '0';
if (do_size)
{
- if (oper->type == RX_Operand_Indirect)
+ if (oper->type == RX_Operand_Indirect || oper->type == RX_Operand_Zero_Indirect)
PR (PS, "%s", size_names[oper->size]);
}
else
PR (PS, "%s", register_names[oper->reg]);
break;
case RX_Operand_Indirect:
- if (oper->addend)
- PR (PS, "%d[%s]", oper->addend, register_names[oper->reg]);
- else
- PR (PS, "[%s]", register_names[oper->reg]);
+ PR (PS, "%d[%s]", oper->addend, register_names[oper->reg]);
+ break;
+ case RX_Operand_Zero_Indirect:
+ PR (PS, "[%s]", register_names[oper->reg]);
break;
case RX_Operand_Postinc:
PR (PS, "[%s+]", register_names[oper->reg]);