/* Disassemble MSP430 instructions.
- Copyright (C) 2002-2014 Free Software Foundation, Inc.
+ Copyright (C) 2002-2015 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
sprintf (op1, "0x%04x", PS (dst));
sprintf (comm1, "PC rel. 0x%04x",
PS ((short) addr + 2 + dst));
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
if (dst & 0x80000)
cmd_len += 4;
*cycles = 6;
sprintf (op1, "&0x%04x", PS (dst));
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
sprintf (op1, "&0x%05x", dst & 0xfffff);
{
/* Indexed. */
dst = msp430dis_opcode (addr + 2, info);
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
if (dst & 0x80000)
sprintf (op1, "#%d", dst);
if (dst > 9 || dst < 0)
sprintf (comm1, "#0x%04x", PS (dst));
- if (extended_src)
+ if (extension_word)
{
dst |= extended_src << 16;
if (dst & 0x80000)
sprintf (op1, "0x%04x", PS (dst));
sprintf (comm1, "PC rel. 0x%04x",
PS ((short) addr + 2 + dst));
- if (extended_src)
+ if (extension_word)
{
dst |= extended_src << 16;
if (dst & 0x80000)
cmd_len += 2;
sprintf (op1, "&0x%04x", PS (dst));
sprintf (comm1, "0x%04x", PS (dst));
- if (extended_src)
+ if (extension_word)
{
dst |= extended_src << 16;
sprintf (op1, "&0x%05x", dst & 0xfffff);
/* Indexed. */
dst = msp430dis_opcode (addr + 2, info);
cmd_len += 2;
- if (extended_src)
+ if (extension_word)
{
dst |= extended_src << 16;
if (dst & 0x80000)
sprintf (op2, "0x%04x", PS (dst));
sprintf (comm2, "PC rel. 0x%04x",
PS ((short) addr + cmd_len + dst));
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
if (dst & 0x80000)
dst = msp430dis_opcode (addr + cmd_len, info);
cmd_len += 2;
sprintf (op2, "&0x%04x", PS (dst));
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
sprintf (op2, "&0x%05x", dst & 0xfffff);
dst |= -1 << 16;
if (dst > 9 || dst < 0)
sprintf (comm2, "0x%04x", PS (dst));
- if (extended_dst)
+ if (extension_word)
{
dst |= extended_dst << 16;
if (dst & 0x80000)