* config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
This commit is contained in:
parent
4c89d75d4f
commit
18566f5563
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-10-16 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
From Andrew Pines <apines@cosmodog.com>
|
||||||
|
* config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
|
||||||
|
|
||||||
2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
|
2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
|
||||||
Hans-Peter Nilsson <hp@bitrange.com>
|
Hans-Peter Nilsson <hp@bitrange.com>
|
||||||
|
|
||||||
|
|
|
@ -2573,14 +2573,14 @@ m68k_ip (instring)
|
||||||
if (adds (&opP->disp) == 0)
|
if (adds (&opP->disp) == 0)
|
||||||
{
|
{
|
||||||
if (the_ins.opcode[0] == 0x6000) /* jbra */
|
if (the_ins.opcode[0] == 0x6000) /* jbra */
|
||||||
the_ins.opcode[0] = 0x4EF1;
|
the_ins.opcode[0] = 0x4EF9;
|
||||||
else if (the_ins.opcode[0] == 0x6100) /* jbsr */
|
else if (the_ins.opcode[0] == 0x6100) /* jbsr */
|
||||||
the_ins.opcode[0] = 0x4EB1;
|
the_ins.opcode[0] = 0x4EB9;
|
||||||
else /* jCC */
|
else /* jCC */
|
||||||
{
|
{
|
||||||
the_ins.opcode[0] ^= 0x0100;
|
the_ins.opcode[0] ^= 0x0100;
|
||||||
the_ins.opcode[0] |= 0x0006;
|
the_ins.opcode[0] |= 0x0006;
|
||||||
addword (0x4EF1);
|
addword (0x4EF9);
|
||||||
}
|
}
|
||||||
add_fix ('l', &opP->disp, 0, 0);
|
add_fix ('l', &opP->disp, 0, 0);
|
||||||
addword (0);
|
addword (0);
|
||||||
|
|
Loading…
Reference in a new issue