28.2.144 __builtin_write_ACCH
Architecture
dsPIC33A
Description
Write a value to the high part of an accumulator. If loading the entire accumulator, this
function or __builtin_lac
should be executed first.
Example:
volatile register int Accum asm("A");
int value;
Accum = __builtin_write_ACCH(value);
Prototype
int __builtin_write_ACCH(int value);
Arguments
value
- value to write
Return Value
Accumulator is updated by writing the high part of the accumulator; the low part of the accumulator is cleared and the value is sign extended to the upper part of the accumulator.
Machine Instruction
lac.l
Error Messages
None.