I just finished up my Microprocessors class in college just a few weeks ago, there we programmed in assembly only. We learned a fair amount (IMHO) about interrupts.
Here is my question: I am programming in C using the HiTech Compiler for the 16F684, in the datasheet section discussing the interrupts (PIC 16F684 Datasheet Section 12.4) it says that the program will go to the interrupt vector 0x0004. Using the assembly in my microprocessors class we would simply setup a .org statement pointing to that address and write the needed assembly below so when the interrupt occurs it would jump there and run. I can figure that out in assembly, but when I program in C I don t believe I have control over where program pieces are placed in memory, which presents a problem. I can t figure out how to place commands at the interrupt in C.
Please let me know if I need to clarify!