This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing to a Specific Program Memory Location in C for an ISR

I'm attempting to use the timer 1 ISR for the ADuC814. In assembly I easily use the ORG directive to write to the address that the PC jumps to when the interupt is set. How do I do the equivalent in C? Any help would be appreciated.

Parents
  • and would not work for an ISR (as this thread is about)

    He also intimated that he knew how he would have used "ORG" in assembly to get something done and asked about the equivalent in C. In general, only the linker can implement ORG for you. In the special case of ISRs (which I very-well understand he's talking about), I pointed out the interrupt keyword.

Reply
  • and would not work for an ISR (as this thread is about)

    He also intimated that he knew how he would have used "ORG" in assembly to get something done and asked about the equivalent in C. In general, only the linker can implement ORG for you. In the special case of ISRs (which I very-well understand he's talking about), I pointed out the interrupt keyword.

Children