Module 2notes
Module 2notes
Interrupt
Sources Of Interrupt
1.Hardware Interrupt
The 8086 has two hardware interrupt pins, i.e. NMI and INTR.
NMI is a non-maskable interrupt and INTR is a maskable interrupt
having lower priority
2.Software Interrupt
Types Of Interrupt
3. The single step trap flag is disabled by clearing the trap flag TF
11. The stack top is popped to IP, CS and flag reg one by one word.
12. Thus at the end of ISS, the previous status of the processor is
restored and so the processor will resume execution of normal
program from the instruction where it was suspended
Priorities Of Interrupts
Interrupt Priority
• NMI
• INTR
MOV AX,CX
ADD AX,DX
4 Register Indirect:
5 Indexed:
6 Register Relative:
7 Based Indexed:
7. String Instructions
E.g.:
ADD DX, AX
ADC DX, AX
E.g.:
SUB DX, AX
E.g.:
SBB DX, AX
The value of source and destination does not change, but the
flags CF, ZF, SF are modified to indicate the result.
NEG Src:
LOGICAL INSTRUCTIONS
NOT Src:
e,.g NOT AX
OR Des, Src:
E.g.:
MOV AL, BL
PUSH Operand:
E.g.: PUSH BX
POP Des:
E.g.: POP AX
LAHF:
SAHF:
PUSHF:
POPF:
CALL Des:
RET:
JMP Des:
JB Jump if Below CF = 1
JE Jump if Equal ZF = 1
JZ Jump if Zero ZF = 1