When I assembly a code with the Z80 instruction:

ld a, (bc)

it generates the byte 0x1A, instead of 0x0A.

0x1A is the byte for the instruction
ld a, (de)

By assembling this instruction, it generates also (but now correct) 0x1A.

Tested with binutils-2.18 compiled by me and binutils-2.19 provided by Debian.

Sorry my poor english.

-- 
           Summary: Wrong instruction-byte association on Z80 port
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: rodolforg at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: z80-unknown-coff


http://sourceware.org/bugzilla/show_bug.cgi?id=10342

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to