> I am trying to make the following code > work when compiled by sdcc for pic18f4550 > with --no-crt. > > I take care not using stack, but I guess thi is > not a problem given the way sdcc works. > > It compiles, but at run time my led is not switched > on (the led works well) > > Could you tell me if there is something wrong with > the code?
You need to add #include <pic18fregs.h> __code char __at(__CONFIG4L) __conf4l = _ENHCPU_OFF_4L; at the top of your code to disable the extended instruction set. 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