# Vault 7: Projects

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

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 473
- 474
- 475
- 476
- 477
…
- 501
- 502

© 2005-2011 Microchip Technology Inc. DS70157F-page 475
Section 6. Built-in Functions
Built-in Functions
6
__builtin_subab
Description:
Subtracts accumulators A and B with the result written back to the specified accumulator. For
example:
register int result asm("A");
register int B asm("B");
result = _ _builtin_subab(result,B);
will generate:
sub A
Prototype:
int _ ___builtin_subab(int Accum_a, int Accum_b);
Argument:
Accum_a Accumulator from which to subtract.
Accum_b Accumulator to subtract.
Return Value:
Returns the subtraction result to an accumulator.
Assembler Operator / Machine Instruction:
sub
Error Messages:
An error message appears if the result is not an accumulator register.
__builtin_tbladdress
Description:
Returns a value that represents the address of an object in program memory. The argument p
must be the address of an object in an EE data, PSV or executable memory space; otherwise
an error message is produced and the compilation fails. See the space attribute in
Section 2.3.1 “Specifying Attributes of Variables” of the “MPLAB
®
C Compiler for PIC24
MCUs and dsPIC
®
DSCs User’s Guide” (DS51284).
Prototype:
unsigned long _ _builtin_tblpage(const void *p);
Argument:
p object address
Return Value:
Returns an unsigned long value that represents the address of an object in program
memory.
Assembler Operator / Machine Instruction:
tbladdress

- 1
- 2
…
- 473
- 474
- 475
- 476
- 477
…
- 501
- 502