summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-16 14:31:43 +0000
committerAlan Modra <amodra@gmail.com>2001-10-16 14:31:43 +0000
commit74f6861779d75f199f7972f043130e483081e0ba (patch)
tree664126368e909ba392595f735d5f494f75004e22
parent0b8ba6b88ba29270641c4e1e7b859ce6eb3f82ec (diff)
downloadbinutils-gdb-74f6861779d75f199f7972f043130e483081e0ba.tar.gz
* config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-m68k.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1079c792e24..03a82109ca1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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-05 Alan Modra <amodra@bigpond.net.au>
* config/tc-i386.c (parse_register): If not producing code for
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 24e1e3f9868..6fe16a794e5 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -2579,14 +2579,14 @@ m68k_ip (instring)
if (adds (&opP->disp) == 0)
{
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 */
- the_ins.opcode[0] = 0x4EB1;
+ the_ins.opcode[0] = 0x4EB9;
else /* jCC */
{
the_ins.opcode[0] ^= 0x0100;
the_ins.opcode[0] |= 0x0006;
- addword (0x4EF1);
+ addword (0x4EF9);
}
add_fix ('l', &opP->disp, 0, 0);
addword (0);