Z80 incorrect opcode emit
Arnold Metselaar
arnold.metselaar@planet.nl
Sun Sep 14 05:52:00 GMT 2008
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
More information about the Binutils
mailing list