First post, by nicor
Hi all. I´m new here.
I use Dosbox to program in Turbo C. Just an old fashion hobby of mine.
Recently, I tried to replace an interrupt vector, eg. divide by zero interrupt (INT 0) using getvect() and setvect() with my own code (a printf() message). The problem is when interrupt function returns, immediately executes again from the beginning. So never returns control to code outside.
By the other hand, calling the backed up vector just before return from my own interrupt everything works nice, but of course both interrupt functions execute (mine and the original).
I tried with INT9 with same results.
In microcontroller architectures one must reset a specific interrupt flag just to avoid re-entering the ISR. I don´t know if PC architecture requires something like that. Can you give me some advice?
Thanks in advance.