next up previous contents index
Next: 4.6.12 Function return values Up: 4.6 The PIC16 port Previous: 4.6.10 Stack   Contents   Index

4.6.11 Functions

In addition to the standard SDCC function keywords, PIC16 port makes available two more:

void func_wparam(int a) wparam

{

    /* WREG hold the lower part of a */

    /* the high part of a is stored in FSR2+2 (or +3 for large stack model) */

...

}

This keyword replaces the deprecated wparam pragma.

void isr_shadow(void) shadowregs interrupt 1

{

...

}

shadowregs instructs the code generator not to store/restore WREG, STATUS, BSR when entering/exiting the ISR.


next up previous contents index
Next: 4.6.12 Function return values Up: 4.6 The PIC16 port Previous: 4.6.10 Stack   Contents   Index
Erik Petrich 2006-07-28