Sir, May i know the 8051 c program for the instruction rlc a (rotate accumulator left through carry) Is there any operator for this insruction like shift operator
thanks & regards Rijo
In Standard C, No there is no keywords to do this. You can code it and see if the compiler is smart enouht to see and use it in the ASM. Optionally you can call an ASM function that does it.
Check the manual and see if there a built in function for it.
Or standard C code can be written that will result in a variable ending up with the same contents as if a rotate through carry had been made. After all, C code isn't expected to care about contents of flag registers, but what contents we end up with in the actual variables.
... common excersize in C 101
Erik
aka "intrinsic" function.