Hello,
I use the MC908GZ60 and CodeWarrior. I want to programm a simple running LED on Port A in C language.
I wrote a code like this:
char var1 = 0b00000001;
for(;
{
asm("rol var1");
PTA = var1;
wait(); // function with loops for time delay
}
When I "make" the project i get following error message:
Error : C18700: Unknown Opcode Operand Combination: Opc.:ROL/Dest.:Ext/Source:NoOp.
main.c line 90
Error : C18701: Unknown Opcode 19
main.c line 90
Error : Compile failed
Can anyone tell me what is wrong with my code?
Thanks for your help!
sincerly yours
Josef