SW500010 Microchip Technology, SW500010 Datasheet - Page 91

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
C Language Features
3.5.2 Function Return Values
Function return values are passed to the calling function as follows:
3.5.2.1 8-Bit Return Values
Eight-bit values are returned from a function in WREG. For example, the function:
will exit with the following code:
3.5.2.2 16-bit and 32-bit values
Larger values are returned in the parameter memory locations, with the least significant word in the
lowest memory location. For example, the function:
will exit with the code similar to:
3.5.2.3 Structure Return Values
Composite return values (struct and union) of size 4 bytes or smaller are returned in memory as
with 16-bit and 32-bit return values. For composite return values of greater than 4 bytes in size, the
address of the structure or union is returned in WREG. For example:
char return_8(void)
{
}
retlw 0
int return_16(void)
{
}
movlw 34h
movwf (?_return_16)
movlw 12h
movwf (?_return_16)+1
return
return 0;
return 0x1234;
Functions
91

Related parts for SW500010