aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-z80.c
diff options
context:
space:
mode:
authorArnold Metselaar <arnold.metselaar@planet.nl>2008-09-14 05:40:09 +0000
committerArnold Metselaar <arnold.metselaar@planet.nl>2008-09-14 05:40:09 +0000
commit2cf402d663ace8b31cb956fc4e9cd0bd1e565774 (patch)
tree9cc402c5abf050e8cc24950ced78fa69c26ea664 /gas/config/tc-z80.c
parent353ee11d7535917794f118d75fd8e099237850ef (diff)
downloadgdb-2cf402d663ace8b31cb956fc4e9cd0bd1e565774.zip
gdb-2cf402d663ace8b31cb956fc4e9cd0bd1e565774.tar.gz
gdb-2cf402d663ace8b31cb956fc4e9cd0bd1e565774.tar.bz2
Fix Opcode generation of ld a,(bc) and ld a,(de) on target z80
Diffstat (limited to 'gas/config/tc-z80.c')
-rw-r--r--gas/config/tc-z80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c
index 89a4603..825d920 100644
--- a/gas/config/tc-z80.c
+++ b/gas/config/tc-z80.c
@@ -1471,7 +1471,7 @@ emit_ldreg (int dest, expressionS * src)
&& (src->X_add_number == REG_BC || src->X_add_number == REG_DE))
{
q = frag_more (1);
- *q = 0x0A + ((dest & 1) << 4);
+ *q = 0x0A + ((src->X_add_number & 1) << 4);
break;
}