Fix Opcode generation of ld a,(bc) and ld a,(de) on target z80

This commit is contained in:
Arnold Metselaar 2008-09-14 05:40:09 +00:00
parent 353ee11d75
commit 2cf402d663
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-09-14 Chris Smith <chris@zxdesign.info>
* config/tc-z80.c: Opcode generation of ld a,(bc) and ld a,(de) was
broken, as the opcode of ld a,(de) was being emitted for both.
2008-09-12 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (init_op_placement_info_table): Allow number of

View File

@ -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;
}