28.2.1 __builtin_ACCL, __builtin_ACCH, __builtin_ACCU

Description

This function can be used to gain access to the low, high, or upper portion of an accumulator value. For example:

volatile register int value asm(“A”);

int result = __builtin_ACCL(value);

The example result will be the low 16-bits stored in the accumulator which holds value.

These builtins allow access to the parts of an accumulator in a way that is optimizer safe.

Prototype

int __builtin_ACCL(int value);
int __builtin_ACCH(int value);
int __builtin_ACCU(int value);

Argument

value – Integer number to set accumulator value.

Return Value

Returns the low, high or upper portion of the accumulator.

Assembler Operator/ Machine Instruction

None

Error Messages

None