28.2.5 __builtin_addab

Architecture

dsPIC33C/E/F, dsPIC30

Description

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

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

 result = __builtin_addab(result,B);

will generate:

 add A

Prototype

int16_t __builtin_addab(int16_t Accum_a, int16_t Accum_b);

Arguments

Accum_a – First accumulator to add.

Accum_b – Second accumulator to add.

Return Value

Returns the addition result to an accumulator.

Machine Instruction

add a

Error Messages

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