Re: [uCsimm] Assembler oddities

From: Erwin Authried (eauth@softsys.co.at)
Date: Wed Mar 22 2000 - 14:31:52 EST


>From the texinfo docs:

@cindex @samp{--bitwise-or} option, M680x0
Normally the character @samp{|} is treated as a comment character, which
means that it can not be used in expressions. The @samp{--bitwise-or}
option turns @samp{|} into a normal character. In this mode, you must
either use C style comments, or start comments with a @samp{#} character
at the beginning of a line.

Regards,

Erwin

Tom Walsh[SMTP:tom@cyberiansoftware.com] wrote:
>
> Hello,
>
> This one has me stumped, this is probably very easy to do as I have
> little experience with 68K assembler & gcc! This is an example of the
> error:
>
> ------------------- begin test.S ----------------------------
> .text
> moveb #(4 | 1), %d0
> moveb #(4 & 1), %d0
> moveb #(4 ^ 1), %d0
> moveb #(4 ! 1), %d0
>
> ------------------- snip ----------------------------------
>
> I assemble it with 'm68k-coff-as test.S -o test.o' and I get the
> following error:
> test.S: Assembler messages:
> test.S:2: Error: Missing ) -- statement `moveb #(4' ignored'
>
>
> It is totally wierd that the only infix operator that fails is the
> Bitwise OR, commenting the line out that uses the infix OR and it
> assembles just fine. I am currently compiling the uClinux kernel fine,
> I have another project written under COFF that also assembles / compiles
> / runs fine. What is odd is that the crt0_rom.S file contained in the
> kernel sources makes many such OR references and the kernel compiles are
> okay.
>
> Any clues gratefully accepted!
>
> TomW
>
>
> --
> Tom Walsh - WN3L - Embedded Systems Consultant
> 'www.openhardware.net', 'www.cyberiansoftware.com'
> "Windows? No thanks, I have work to do..."
>
>
>



This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:35 EST