I have a n00b question. I am using sdcc to write c for a 18f248. I'd
like to use interrupts. Using gpsim execution starts at 0x0000 and
will happily skip over the NOPs until my main at address 0x2A. When I
switch on an interrupt the interrupt vector address is interpreted as
program code and of course the results are undefined.

I think the questions I have are

1. How do I specify the reset vector target address and make it point to main
2. How do I make sure program execution at reset is from main and not
a bunch of nop instructions from address 0x0000 -> 0x002A.

If I am asking the wrong question or need to approach this in a
different way then I would really appreciate either some light or a
gentle nudge in the right direction.

Many thanks

Jonathan

P.S. Please reply to [EMAIL PROTECTED] because I am not sure how I
look at posts to [EMAIL PROTECTED]

Thanks again.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to