# Vault 7: Projects

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

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 471
- 472
- 473
- 474
- 475
…
- 501
- 502

© 2005-2011 Microchip Technology Inc. DS70157F-page 473
Section 6. Built-in Functions
Built-in Functions
6
__builtin_sacr
Description:
Shifts value by shift (a literal between -8 and 7) and returns the value which is rounded using
the rounding mode determined by the CORCONbits.RND control bit.
For example:
register int value asm("A");
int result;
result = _ _builtin_sac(value,3);
May generate:
sac.r A, #3, w0
Prototype:
int _ _builtin_sacr(int value, int shift);
Argument:
value Integer number to be shifted.
shift Literal amount to shift.
Return Value:
Returns the shifted result to the CORCON register.
Assembler Operator / Machine Instruction:
sacr
Error Messages:
An error message appears if:
• the result is not an accumulator register
• the shift value is not a literal within range

- 1
- 2
…
- 471
- 472
- 473
- 474
- 475
…
- 501
- 502