next up previous contents index
Next: 4.5.11 Interrupts Up: 4.5 The PIC16 port Previous: 4.5.9 Stack   Contents   Index

4.5.10 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



Bernhard Held 2004-02-21