Line 1... |
Line 1... |
/* Disassembler code for CRX.
|
/* Disassembler code for CRX.
|
Copyright 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
Copyright 2004, 2005, 2006, 2007, 2012 Free Software Foundation, Inc.
|
Contributed by Tomer Levi, NSC, Israel.
|
Contributed by Tomer Levi, NSC, Israel.
|
Written by Tomer Levi.
|
Written by Tomer Levi.
|
|
|
This file is part of the GNU opcodes library.
|
This file is part of the GNU opcodes library.
|
|
|
Line 546... |
Line 546... |
{
|
{
|
getregliststring (a->constant, string, reg_arg_type);
|
getregliststring (a->constant, string, reg_arg_type);
|
func (stream, "%s", string);
|
func (stream, "%s", string);
|
}
|
}
|
else
|
else
|
func (stream, "$0x%lx", a->constant);
|
func (stream, "$0x%lx", a->constant & 0xffffffff);
|
}
|
}
|
else
|
else
|
{
|
{
|
getregliststring (a->constant, string, reg_arg_type);
|
getregliststring (a->constant, string, reg_arg_type);
|
func (stream, "%s", string);
|
func (stream, "%s", string);
|
}
|
}
|
}
|
}
|
else
|
else
|
func (stream, "$0x%lx", a->constant);
|
func (stream, "$0x%lx", a->constant & 0xffffffff);
|
break;
|
break;
|
|
|
case arg_idxr:
|
case arg_idxr:
|
func (stream, "0x%lx(%s,%s,%d)", a->constant, getregname (a->r),
|
func (stream, "0x%lx(%s,%s,%d)", a->constant & 0xffffffff,
|
getregname (a->i_r), powerof2 (a->scale));
|
getregname (a->r), getregname (a->i_r), powerof2 (a->scale));
|
break;
|
break;
|
|
|
case arg_rbase:
|
case arg_rbase:
|
func (stream, "(%s)", getregname (a->r));
|
func (stream, "(%s)", getregname (a->r));
|
break;
|
break;
|
|
|
case arg_cr:
|
case arg_cr:
|
func (stream, "0x%lx(%s)", a->constant, getregname (a->r));
|
func (stream, "0x%lx(%s)", a->constant & 0xffffffff, getregname (a->r));
|
|
|
if (IS_INSN_TYPE (LD_STOR_INS_INC))
|
if (IS_INSN_TYPE (LD_STOR_INS_INC))
|
func (stream, "+");
|
func (stream, "+");
|
break;
|
break;
|
|
|