EasyManuals Logo

Intel 80286 User Manual

Intel 80286
515 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #176 background imageLoading...
Page #176 background image
INTERRUPTS AND EXCEPTIONS
9.7.1 Single Step Interrupt (Interrupt 1)
Interrupt 1 allows programs
to
execute one instruction
at
a time. This single-stepping
is
controlled by
the
TF
bit in the flag word. Once this bit
is
set, an internal single step interrupt
will
occur after the
next instruction has been executed. The interrupt saves the flags' and return address on the stack, clears
theTF
bit, and uses an internally supplied vector of 1
to
transfer control to the service routine via the
IDT.
The
IRET
instruction or a task switch must be used to set the
TF
bit and to transfer control
to
the
next instruction to be single stepped.
If
TF=
1
in
a TSS and that task
is
invoked, it
will
execute the
first instruction and then be interrupted.
The single-step flag
is
normally not cleared
by
privilege changes inside a task.
INT
instructions, however,
do
clear TF. Therefore, software debuggers that single-step code must recognize and emulate
INT
n
or
INT
0 rather than executing them directly. System software should check the current execution
privilege level after any single step interrupt
to
see whether single stepping should continue.
The interrupt priorities
in
hardware guarantee that if an external interrupt occurs, single stepping
stops. When both an external interrupt and a single step interrupt occur together, the single step inter-
rupt
is
processed first. This clears the
TF
bit.
After
saving the return address or switching tasks, the
external interrupt input
is
examined before the first instruction of the single step handler executes.
If
the external interrupt
is
still pending, it
is
then serviced. The external interrupt handler
is
not single-
stepped. Therefore, to single step an interrupt handler, just single step an interrupt instruction that
refers to the interrupt handler.,
9-14
pcjs.org

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Intel 80286 and is the answer not in the manual?

Intel 80286 Specifications

General IconGeneral
Processor TypeMicroprocessor
Clock Speed6 MHz to 25 MHz
Transistor Count134, 000
Addressable Memory16 MB
Instruction Setx86
Architecturex86
Data Bus Width16-bit
Address Bus Width24-bit
Operating ModesReal mode, Protected mode
Process Technology1.5 µm
Voltage5V
Introduced1982
Package68-pin PGA

Related product manuals