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

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh