Chapter 5 - Program Control Instructions
Chapter 5 - Program Control Instructions
Lecture 7
Note: Interrupts are usually used for system events, this is just an
example.
INTERRUPT CONTROL
Hardware interrupt is caused by any peripheral device by sending
a signal through a specified pin to the microprocessor.
One interrupt pin in the 8086 microprocessor is the INTR pin.
There are 2 instructions that control the INTR pin: set interrupt flag
(STI) that enables the INTR pin and the clear interrupt flag (CLI)
that disables the INTR pin.
In a software interrupt service procedure, hardware interrupts are
enabled as one of the first steps. Because just about all of the I/O
devices in the personal computer are interrupt-processed.
INTERRUPTS IN A PERSONAL COMPUTER
Interrupts found in the personal computer only contain Intel-
specified interrupts 0–4 that were present in the early 8086
microprocessors.
Access to the protected mode interrupt structure in use by
Windows is accomplished through kernel functions Microsoft
provides and cannot be directly addressed. Protected mode
interrupts use an interrupt descriptor table.
MACHINE CONTROL AND MISCELLANEOUS
INSTRUCTIONS
Used in hardware control
Provide control of the carry bit, sample the BUSY/TEST pin, and
perform various other functions.
STC, CLC, CMC
WAIT
HLT Reading Assignment
NOP
LOCK
ESC
BOUND
ENTER and LEAVE