Hello,

I'm porting existing code for pic16f88 from CC5X to SDCC compiler.
I have a problem with absolute addressing for functions with parameters.

Code which I'm porting use closed source os functions which are
exported to header file in CC5x way:
#pragma origin 0x0202
void function(int w)
{

}

I change to:

__code __at(0x0202) function (int w)
{

}

but sdcc complains about:syntax error: token -> '0x0000' ;

It's possible to set direct addressing for functions with parameters?

Thanks in advance,

Marek



-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to