Hello, I made some further investigations.

(looked into lst file and checked the content of the hex file).

When there are no interrupt routine specified, the main code was put directly 
to 0x00 address.
It works, but not good practice, because it overlaps the interrupt vectors.
Even without interrupt routines defined, the interrupt vectors should be kept
and single retfie instructions should be put to adress 0x08 and 0x18.

In second case, with interrupt routine: The interrupt vector 0x08 contains a 
goto instruction,
but there is nothing in reset vector (0x00)
The resulted hex file begins at address 0x08.
This is totally bad.

I tried to add libsdcc.lib libm18f.lib and libcrt0.lib.
Nothing changed.

What should I do?

Tamas


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to