
Instruction Set
4-235
STI
Set Interrupt-Enable Flag
STI
What It Does
STI sets the Interrupt-Enable Flag (IF), enabling all maskable interrupts that are not masked
by their interrupt control registers.
Syntax
Description
STI sets the Interrupt-Enable Flag (IF). The processor responds to external interrupts after
executing the next instruction if that instruction does not clear IF. If external interrupts are
disabled and the program executes STI before a RET instruction (such as at the end of a
subroutine), RET executes before processing any external interrupts. If external interrupts
are disabled and the program executes STI before a CLI instruction, no external interrupts
are processed because CLI clears IF.
STI has no affect on nonmaskable interrupts, or on software-generated interrupts or traps
(i.e., INT
x).
Operation It Performs
Flag Settings After Instruction
Form
Opcode
Description
Clocks
Am186 Am188
STI
FB
Enable maskable interrupts after the next instruction
2
2
STI
/* enable maskable interrupts */
IF = 1;
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Processor Status
Flags Register
reserved
OF DF
IF TF SF ZF
AF
PF
CF
? = undefined; – = unchanged
–
–
1
–
–
– res – res – res –
Summary of Contents for Am186 Series
Page 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Page 10: ...Table of Contents x...
Page 18: ...Programming 1 8...
Page 40: ...Instruction Set Listing 3 14...