28.2.3 __builtin_addab

Description

Add accumulators A and B with the result written back to the specified accumulator.

 volatile register int result asm("A");
 volatile register int B asm("B");

 result = __builtin_addab(result,B);

will generate:

add A

Prototype

int __builtin_addab(int Accum_a, int Accum_b);

Argument

Accum_a – First accumulator to add.

Accum_b – Second accumulator to add.

Return Value

Returns the addition result to an accumulator.

Assembler Operator/ Machine Instruction

add

Error Messages

An error message will be displayed if the result is not an accumulator register.