| ??? 07/18/02 03:44 Read: times |
#25957 - how to write interrupt vectors in C. |
hi,
I am using the raisonance compiler. I have an assembly code that i am converting to C. I have a couple of interrupts. 1. ORG RST_VEC+0003H ; INT0 Vector JMP INT0INT 2. ORG RST_VEC+000BH ; TMR0 Vector JMP TMR0INT In C i write it as The associated interrupt vector address is 3 + IT_number * 8. void int0(void) interrupt 0. and for 2.as void tmr0(void) interrupt 1 ******************************************* Now i have something like this ORG RST_VEC+0013H ; INT1 Vector ORG RST_VEC+001BH ; TMR1 Vector ORG RST_VEC+0023H ; SERIAL Vector JMP SERPROC ORG RST_VEC+0035H ; Vector end place holder ******************************************* so if i want to write interrupt for SERPROC should i consider 23H or 35H. As no way i can express 23H in the above format. should all my interrupts be declared above main? regards, roger |
| Topic | Author | Date |
| how to write interrupt vectors in C. | 01/01/70 00:00 | |
| RE: how to write interrupt vectors in C. | 01/01/70 00:00 | |
| RE: how to write interrupt vectors in C. | 01/01/70 00:00 | |
| how to write interrupt vectors in C | 01/01/70 00:00 | |
RE: how to write interrupt vectors in C. | 01/01/70 00:00 |



