From: Jonathan a. C. M. <jan...@gm...> - 2007-06-07 18:26:27
|
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 jan...@gm... because I am not sure how I look at posts to sdc...@li.... Thanks again. |