bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/30752] New: RFE: Z80: allow relaxed syntax of instructions usin


From: hpa at zytor dot com
Subject: [Bug gas/30752] New: RFE: Z80: allow relaxed syntax of instructions using register A
Date: Mon, 14 Aug 2023 11:31:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30752

            Bug ID: 30752
           Summary: RFE: Z80: allow relaxed syntax of instructions using
                    register A
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hpa at zytor dot com
  Target Milestone: ---

In the official Z80 syntax, register A is supposed to be written out when, and
only when, the same instruction takes other operands, like HL:

    ADD A,L          ; Because ADD HL,DE
    XOR L            ; No other XOR

In practice, this is needlessly confusing for the programmer; as a result, many
(probably most) legacy Z80 assemblers allow:

    ADD L

... and at least some also allow ...

    XOR A,L

Allowing this relaxed syntax would definitely help porting legacy code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]