# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 445
- 446
- 447
- 448
- 449
…
- 501
- 502

© 2005-2011 Microchip Technology Inc. DS70157F-page 447
Section 6. Built-in Functions
Built-in Functions
6
6.2 BUILT-IN FUNCTION LIST
This section describes the programmer interface to the compiler built-in functions. Since the
functions are “built-in”, there are no header files associated with them. Similarly, there are no
command-line switches associated with the built-in functions – they are always available. The
built-in function names are chosen such that they belong to the compiler’s namespace (they all
have the prefix __builtin_), so they will not conflict with function or variable names in the
programmer’s namespace.
__builtin_addab
Description:
Add accumulators A and B with the result written back to the specified accumulator. For
example:
register int result asm("A");
register int B asm("A");
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 appears if the result is not an accumulator register.

- 1
- 2
…
- 445
- 446
- 447
- 448
- 449
…
- 501
- 502