28.2.8 __builtin_clr

Description

Clear the specified accumulator.

For example:

 volatile register int16_t result asm("A");
 result = __builtin_clr();

will generate:

 clr A

Prototype:

int16_t __builtin_clr(void);

Argument

None

Return Value

Returns the cleared value result to an accumulator.

Assembler Operator/ Machine Instruction

clr a

Error Messages

An error message will be displayed if the result is not an accumulator register.