Josef Zinner

MC908GZ60 running LED

Discussion created by Josef Zinner on Oct 30, 2006
Latest reply on Oct 31, 2006 by Josef Zinner
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(;:smileywink: {
 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