This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Bug in Binutils 2.15 for the H8/300H ?
- From: "Asgari J. Jinia" <AsgariJ at KPITCummins dot com>
- To: <hansjuergen dot dreuth at simplify-technologies dot de>
- Cc: <binutils at sources dot redhat dot com>
- Date: Tue, 7 Sep 2004 12:36:59 +0530
- Subject: Bug in Binutils 2.15 for the H8/300H ?
Hi,
>.h8300h ;directive for h8300h code
>.equ NUMBER, 0x80
>.equ NUMBER2, 0x70
>; 1st error:
> AND.B #~NUMBER, r3l ; this causes: "Error: invalid operands"
This is because in binutils 2.15 operand's size checking has become more stringent.
As per programming manual, with "and.b" instruction immediate value in the range
+127 to -128 is required. The number ~0x80 results in the out of range.
So assembler gives error.
You can try using following instruction.
AND.B #~NUMBER:8, r3l
Regards,
Asgari Jinia
KPIT Cummins InfoSystems Ltd.
Pune, India
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools are released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~