Re: [PATCH 1/2] z80, gas: follow historical assemblers and allow "op A,x" and "op x"
H. Peter Anvin
hpa@zytor.com
Fri Oct 17 17:53:48 GMT 2025
On October 17, 2025 5:06:47 AM PDT, Jan Beulich <jbeulich@suse.com> wrote:
>On 13.10.2025 22:25, H. Peter Anvin wrote:
>> For arithmetic ops, Z80 syntax wants "op A,x" for ADD, ADC and SBC and
>> "op x" for SUB, AND, OR, XOR, and CP. Many historical assemblers
>> simply treat them orthogonally; allowing but not requiring the "A,"
>> operand for any of these operations. This is widely used in legacy
>> source code, and there is no reason not to.
>>
>> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
>
>Knowing nothing about the arch, this looks okay to me. Have you organized
>yourself commit rights, or will this need committing on your behalf?
>
>Jan
No, I don't have commit rights.
More information about the Binutils
mailing list