Bug in Binutils 2.15 for the H8300H ?
Hansjuergen Dreuth
hansjuergen.dreuth@simplify-technologies.de
Mon Sep 6 09:18:00 GMT 2004
Hi,
recently I upgraded our GNU toolchain for use with the H8/300h and
H8/300s microcontrollers.
When using the binutils 2.15 the errors shown in the following example
assembler file occurred. They do not happen if binutils 2.14 are used:
----------------------------------------------------
.h8300h ;directive for h8300h code
.equ NUMBER, 0x80
.equ NUMBER2, 0x70
; 1st error:
AND.B #~NUMBER, r3l ; this causes: "Error: invalid operands"
AND.B #~0x0F, r3l ; this works
AND.B #~NUMBER2, r3l ; this also works (error seem to depend on the
; number - the most significant bit seems to be the problem)
; 2nd error (does not occur when ".h8300s" is chosen; but the h8300h also
; has this instruction and address mode). The following warning and error
; are issued: Warning: Opcode `bclr' with these operand types not ;
available in H8/300H mode ; Error: invalid operands
bclr #6, @0xFFFFFF7C
-----------------------------------------------------------------------
Does anybody know what causes these errors and how to correct them ?
Thanks,
Hansjuergen Dreuth
__________________
Dr. Hansjuergen Dreuth
Simplify Technologies GmbH, Steinbuehlstraße 15, D-35578 Wetzlar,
Tel.: (+49) (0)6441-210390, FAX: (+49) (0)6441-210399,
Email: hansjuergen.dreuth@simplify-technologies.de,
Internet: http:/www.simplify-technologies.de
More information about the Binutils
mailing list