28.2.29 __builtin_lac
Description
Shifts value by shift (a literal between -8 and 7) and returns the value to be stored into the accumulator register. For example:
volatile register int result asm("A");
int value;
result = __builtin_lac(value,3);
Prototype
int __builtin_lac(int value, int shift);
Argument
value
– Integer number to be shifted.
shift
– Literal amount to shift.
Return Value
Returns the shifted result to an accumulator.
Assembler Operator/ Machine Instruction
lac
Error Messages
An error message will be displayed if: the result is not an accumulator register the shift value is not a literal within range