[PATCH 1/2] z80, gas: follow historical assemblers and allow "op A,x" and "op x"

Jan Beulich jbeulich@suse.com
Fri Oct 17 12:06:47 GMT 2025


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


More information about the Binutils mailing list