(mips16_heuristic_proc_desc): Recognize jal(x) instruction.
+Tue Feb 04 09:04:37 1997 Mark Alexander <marka@cygnus.com>
+
+ * mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
+ (mips16_heuristic_proc_desc): Recognize jal(x) instruction.
+
Mon Feb 03 17:57:58 1997 Mark Alexander <marka@cygnus.com>
* mips-tdep.c (mips16_decode_reg_save): Distinguish between
if ((prev_inst & 0xf800) == 0xf000) /* prev instruction was EXTEND? */
{
- offset = ((prev_inst & 0x1f) << 11) | (prev_inst & 0x7e00);
+ offset = ((prev_inst & 0x1f) << 11) | (prev_inst & 0x7e0);
if (offset & 0x8000) /* check for negative extend */
offset = 0 - (0x10000 - (offset & 0xffff));
return offset | (inst & 0x1f);
temp_saved_regs.regs[reg] = sp + offset;
}
}
+ else if ((inst & 0xf800) == 0x1800) /* jal(x) */
+ cur_pc += MIPS16_INSTLEN; /* 32-bit instruction */
}
}