* Re: Bug in Binutils 2.15 for the H8/300H ? - No Bug.
@ 2004-09-08 13:27 Hansjuergen Dreuth
0 siblings, 0 replies; only message in thread
From: Hansjuergen Dreuth @ 2004-09-08 13:27 UTC (permalink / raw)
To: Asgari J. Jinia; +Cc: binutils
Dear Mr. Jinia,
thank you very much for your comment which helped to resolve the problem.
Adding ":8" to the directive was the solution for both issues.
Best regards,
Hansjuergen Dreuth
> 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.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-08 13:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-08 13:27 Bug in Binutils 2.15 for the H8/300H ? - No Bug Hansjuergen Dreuth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).