28.2.126 __builtin_subab

Architecture

dsPIC33C/E/F, dsPIC30

Description

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

For example:

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

 result = __builtin_subab(result,B);

will generate:

 sub A

Prototype

int16_t __builtin_subab(int16_t Accum_a, int16_t Accum_b);

Arguments

Accum_a – Accumulator from which to subtract.

Accum_b – Accumulator to subtract.

Return Value

Returns the subtraction result to an accumulator.

Machine Instruction

sub

Error Messages

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