mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-10 03:02:30 +00:00
Fix Opcode generation of ld a,(bc) and ld a,(de) on target z80
This commit is contained in:
parent
353ee11d75
commit
2cf402d663
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user