aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorArnold Metselaar <arnold.metselaar@planet.nl>2005-12-02 22:31:16 +0000
committerArnold Metselaar <arnold.metselaar@planet.nl>2005-12-02 22:31:16 +0000
commit7fbe7b46ab894b9fb3598d0dd58cf6076d4c56ca (patch)
tree0a7ae823c5bbef9637e48019cd70dfa83d971d55 /gas
parent3609e0feb6ad892d20a8078f47812b72a590dd86 (diff)
downloadgdb-7fbe7b46ab894b9fb3598d0dd58cf6076d4c56ca.zip
gdb-7fbe7b46ab894b9fb3598d0dd58cf6076d4c56ca.tar.gz
gdb-7fbe7b46ab894b9fb3598d0dd58cf6076d4c56ca.tar.bz2
config/tc-z80.c (emit_ldreg): fix bug in ld rr,<xx>
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-z80.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 055983f..d4132b7 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-02 Arnold Metselaar <arnoldm@sourceware.org>
+
+ * config/tc-z80.c (emit_ldreg): fix bug in ld rr,<xx>
+
2005-11-26 Arnold Metselaar <arnoldm@sourceware.org>
* config/tc-z80.c (z80_start_line_hook): issue an error when
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c
index 09fd1c3..7aabb8e 100644
--- a/gas/config/tc-z80.c
+++ b/gas/config/tc-z80.c
@@ -1604,7 +1604,7 @@ emit_ldreg (int dest, expressionS * src)
/* Fall through. */
case REG_BC:
case REG_DE:
- if (src->X_op == O_register || src->X_op != O_md1)
+ if (src->X_op == O_register || src->X_op == O_md1)
ill_op ();
q = frag_more (src->X_md ? 2 : 1);
if (src->X_md)