This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Z80 incorrect opcode emit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]