Hello Tom,
Tom Walsh 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'
This is a known problem with m68k assembler. By default it interprets
'|' as the begging of a comment. You should use '--bitwise-or'
parameter to make the assembler to interpret '|' as a bitwise OR
operation.
Happy hacking,
Vladimir
>
>
> 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..."
>
>
--
+------------------+------------------------+--------------------------+
| | | |
| :|: :|: | phone 408-525-9707
Vladimir Gurevich | :|||: :|||: | fax 408-525-9707
Software Engineer | .:|||||||:..:|||||||:. |
RABU | CiscoSystems | e-mail vgurevic@cisco.com
| | location SJ-7-2 Cube D1-12
| http://www.cisco.com |
+------------------+------------------------+--------------------------+
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