[uCsimm] Assembler code problems with uCsimm C compiler

From: Roberto Lulli (robertolulli@tin.it)
Date: Mon Nov 27 2000 - 06:46:19 EST


Hi,

Could anyone solve this problem: when I put in my C code named keyboard.c the following lines:

asm("ORI.W #$0700,SR");

asm("ANDI.W #$F0FF,SR");

and I compile the source with m68k-pic-coff-gcc, I obtain the following error lines:

/tmp/cca002181.o (.text+0x5A): keyboard.c : undefined reference to '$0700"
/tmp/cca002181.o (.text+0x5C): keyboard.c : undefined reference to 'SR"
/tmp/cca002181.o (.text+0x260): keyboard.c : undefined reference to '$F0FF"
/tmp/cca002181.o (.text+0x262): keyboard.c : undefined reference to '$SR"

I use the two line of assembler to disable (the first line) and enable (the second line) the interrupt in the 68EZ328 processor.
I take this assembler code from an application note from Motorola regarding the project of a minimum I/O to matrix keyboard with DragonBall EZ328. I thing that in the code of Motorola there aren't syntax error so why it's not working with the uClinux compiler?

Thank you

Roberto Lulli
 

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:39 EST