Hello,
I'm trying to make an naked interrupt function for pic14 (pic16f876a), in
page 48 of SDCC's manual I found this example for 8051:
void nakedInterrupt(void) __interrupt (2) __naked
{
__asm
inc _counter ; does not change flags, no need to save psw
reti ; MUST explicitly include ret or reti in _naked
function.
__endasm;
}
I also found some examples for pic16 (PIC18Fxxx) but anyone for pic 14 and
the compiler retuns me syntax error:
byte...@eeepc-byteptr:~/trabajos/PLL$ sdcc -mpic14 -p16f876 --nogcse
pllfifo.c -o pllfifo
pllfifo.c:120: syntax error: token -> '__naked' ; column 42
this is the header of the ISR routine:
void serialisr(void) __interrupt 0 __naked
Is naked property implemented for pic 14 ?, if not why? and how can I make
for overcome this problem?
thanks in advance
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user