> The following code works like a charm on a pic18f4550.
> Output on the serial port is "A6A6A6A6A6A6A6A".
>
> Now compiling exactly the same source code (or even using the hex-file for 
> the 4550) for a pic18f4680 produces the following output:
> "A???A???AACAsA£A???A"
> The parameter '6' in test_func is somehow not properly transmitted to the 
> function?!
>
> Has anyone else seen this behaviour? what can i do to resolve it?
> Might it be related to the sdcc compiler? or is it just my code?

You might need to disable the extended instruction set on the 4860 part
using something like
#include <pic18fregs.h>
__code char __at(__CONFIG_4L) _conf4l = _XINST_OFF_4L /* & others... */;

Hope that helps,
Raphael


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to