SW500009 Microchip Technology, SW500009 Datasheet - Page 69
SW500009
Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet
1.SW500009.pdf
(444 pages)
Specifications of SW500009
Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
778-1003
778-1003
- Current page: 69 of 444
- Download datasheet (3Mb)
C Language Features
In this example, the parameter b is held in the memory locations ?_test and ?_test+1.
function or the code used to call a function, it is often helpful to write a dummy C function with the
same argument types as your assembler function, and compile to assembler code with the PICC -S
option, allowing you to examine the assembler code.
3.6.2 Function Return Values
Function return values are passed to the calling function as follows:
will exit with the following code:
word in the lowest memory location. For example, the function:
will exit with the following code:
If you need to determine, for assembler code for example, the exact entry or exit code within a
8-Bit Return Values
Eight-bit values are returned from a function in the W register. For example, the function:
16-bit and 32-bit values are returned in temporary memory locations, with the least significant
movlw 08h
movwf ?_test
clrf ?_test+1
movf _a,w
call (_test)
char return_8(void)
{
}
retlw 0
int return_16(void)
{
}
movlw 34h
movwf btemp
movlw 12h
movwf btemp+1
return
return 0;
return 0x1234;
Functions
55
Related parts for SW500009
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: