This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Z80 incorrect opcode emit
- From: Arnold Metselaar <arnold dot metselaar at planet dot nl>
- To: Chris Smith <chris at nfluid dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 14 Sep 2008 07:51:27 +0200
- Subject: Re: Z80 incorrect opcode emit
- References: <200809131647.31208.chris@nfluid.com>
Op zaterdag 13 september 2008 17:47, schreef Chris Smith:
> Whilst porting some Z80 code over to binutils and doing a sanity
> check binary compare of the original and binutils output, I
> discovered that for LD A,(BC) gas was producing the opcode for LD
> A,(DE) instead.
>
> It turns out this was a simple one line error, patch supplied
> below.
>
> Regards,
> Chris
>
> --
> gas/
>
> 2008-08-31 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.
>
[...]
Approved and applied.
Thank you for finding and fixing this bug.
I shall try to cover this bug in the testsuite soon.
Regards,
Arnold