Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 474 © 2005-2011 Microchip Technology Inc.
__builtin_sftac
Description:
Shifts accumulator by shift. The valid shift range is -16 to 16.
For example:
register int result asm("A");
int i;
result = _ _builtin_sftac(result,i);
May generate:
sftac A, w0
Prototype:
int _ _builtin_sftac(int Accum, int shift);
Argument:
Accum Accumulator to shift.
shift Amount to shift.
Return Value:
Returns the shifted result to an accumulator.
Assembler Operator / Machine Instruction:
sftac
Error Messages:
An error message appears if:
• the result is not an accumulator register
• Accum is not an accumulator register
• the shift value is not a literal within range
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf