SW006012 Microchip Technology, SW006012 Datasheet - Page 143

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.
__
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
builtin_clr_prefetch (Continued)
builtin_divmodsd
builtin_divmodud
xptr
xval
xincr
yptr
yval
yincr
AWB
Returns the cleared value result to an accumulator.
clr
An error message will be displayed if:
• the result is not an accumulator register
• xval is a null value but xptr is not null
• yval is a null value but yptr is not null
Issues the 16-bit architecture's native signed divide support with the
same restrictions given in the “dsPIC30F/33F Programmer’s Reference
Manual” (DS70157). Notably, if the quotient does not fit into a 16-bit
result, the results (including remainder) are unexpected. This form of
the builtin function will capture both the quotient and remainder.
signed int __builtin_divmodsd(
dividend
divisor
remainder
Quotient and remainder.
divmodsd
None.
Issues the 16-bit architecture's native unsigned divide support with the
same restrictions given in the “dsPIC30F/33F Programmer’s Refer-
ence Manual” (DS70157). Notably, if the quotient does not fit into a
16-bit result, the results (including remainder) are unexpected. This
form of the builtin function will capture both the quotient and remainder.
unsigned int __builtin_divmodud(
dividend
divisor
remainder
Quotient and remainder.
divmodud
signed long dividend, signed int divisor,
signed int *remainder);
unsigned long dividend, unsigned int divisor,
unsigned int *remainder);
MPLAB C30 Built-in Functions
Integer pointer to x prefetch.
Integer value of x prefetch.
Integer increment value of x prefetch.
Integer pointer to y prefetch.
Integer value of y prefetch.
Integer increment value of y prefetch.
Accumulator selection.
number to be divided
number to divide by
pointer to remainder
number to be divided
number to divide by
pointer to remainder
DS51284F-page 137

Related parts for SW006012