next up previous contents index
Next: 4.6.14 Interrupts Up: 4.6 The PIC16 port Previous: 4.6.12 Functions   Contents   Index

4.6.13 Function return values

Return values from functions are placed to the appropriate registers following a modified Microchip policy optimized for SDCC. The following table shows these registers:

size destination register
8 bits WREG
16 bits PRODL:WREG
24 bits PRODH:PRODL:WREG
32 bits FSR0L:PRODH:PRODL:WREG
>32 bits on stack, FSR0 points to the beginning



2008-12-05