1. Push all registers which will be altered
2 Deal with the immediate time critical section of the interrupt.
3 Reenable interrupts
4 Deal with non time critical components
5 Pop all pushed registers
6 IRET to IP at time of ISR - IRETpops CPU flags and Instruction Pointer from the stack automatically.
1. Push all registers which will be altered
2 Deal with the immediate time critical section of the interrupt.
3 Reenable interrupts
4 Deal with non time critical components
5 Pop all pushed registers
6 IRET to IP at time of ISR - IRETpops CPU flags and Instruction Pointer from the stack automatically.
@sam08016
Hi Sam, Why not try using TurboC to write a Interrupt routine, As you mentioned 8086, I assume you are writing real mode code. TurboC has a interrupt key word which takes care of many thing.
What you can do is compile it and generate assembler file and see it. this is very crude method but it works. You then modify the asm code and see.
By the way Try writing some TSR if you are learning about Interrupt.