https://sourceware.org/bugzilla/show_bug.cgi?id=27823
Bug ID: 27823 Summary: [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble Product: binutils Version: 2.35 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: petemoore at gmx dot net CC: sergey.belyashov at gmail dot com Target Milestone: --- Target: z80-unknown-elf ``` $ # GAS version $ z80-unknown-elf-as --version GNU assembler (GNU Binutils) 2.35.50.20201201 Copyright (C) 2020 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `z80-unknown-elf'. $ # Sample assembly file $ cat test.asm ld a, (0x1234) ld h, (0x2345) ld a, h $ # Assembly should fail but instead assembled code omits invalid instruction $ z80-unknown-elf-as -o test.o test.asm && z80-unknown-elf-objdump -d test.o test.o: file format elf32-z80 Disassembly of section .text: 00000000 <.text>: 0: 3a 34 12 ld a,(0x1234) 3: 7c ld a,h $ ``` Other invalid instructions correctly cause assembly to fail, but for some reason, `ld h, (<16 bit address>)` doesn't. -- You are receiving this mail because: You are on the CC list for the bug.