SW500009 Microchip Technology, SW500009 Datasheet - Page 69

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

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
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