SW006012 Microchip Technology, SW006012 Datasheet - Page 141

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
builtin_btg
builtin_clr
This function will generate a btg machine instruction.
Some examples include:
int i;
int l __attribute__((far));
struct foo {
} barbits;
int bar;
void some_bittoggles() {
}
Note that taking the address of a variable in a register will produce
warning by the compiler and cause the register to be saved onto the
stack (so that its address may be taken); this form is not recommended.
This caution only applies to variables explicitly placed in registers by
the programmer.
void __builtin_btg(unsigned int *, unsigned int
0xn);
*
0xn A literal value in the range of 0 to 15.
Returns a btg machine instruction.
btg
An error message will be displayed if the parameter values are not
within range
Clear the specified accumulator. For example:
will generate:
int __builtin_clr(void);
None
Returns the cleared value result to an accumulator.
int bit1:1;
register int j asm("w9");
int k;
k = i;
__builtin_btg(&i,1);
__builtin_btg(&j,3);
__builtin_btg(&k,4);
__builtin_btg(&l,11);
return j+k;
register int result asm("A");
result = __builtin_clr();
clr A
A pointer to the data item for which a bit should be toggled.
MPLAB C30 Built-in Functions
/* near by default */
DS51284F-page 135

Related parts for SW006012