28.2.30 __builtin_lacd
Description
Shifts a value by shift
and returns the value to be stored into
the accumulator register. For example:
volatile register int result asm("A");
long value;
result = __builtin_lacd(value,3);
Prototype
int __builtin_lacd(long value, unsigned int shift);
Argument
value
– Long integer number to be shifted.
shift
– Literal amount to shift between -16 and 15.
Return Value
Returns the shifted result to an accumulator.
Assembler Operator/ Machine Instruction
None
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