
Programming
1-2
Figure 1-1
Register Set
1.1.1
Processor Status Flags Register
The 16-bit processor status flags register (see Figure 1-2) records specific characteristics
of the result of logical and arithmetic instructions (bits 0, 2, 4, 6, 7, and 11) and controls the
operation of the microcontroller within a given operating mode (bits 8, 9, and 10).
After an instruction is executed, the value of a flag may be set (to 1), cleared/reset (to 0),
unchanged, or undefined. The term
undefined means that the flag value prior to the execution
of the instruction is not preserved, and the value of the flag after the instruction is executed cannot
be predicted. The documentation for each instruction indicates how each flag bit is affected by
that instruction.
Figure 1-2
Processor Status Flags Register (FLAGS)
Bits 15–12—Reserved.
Bit 11: Overflow Flag (OF)—Set if the signed result cannot be expressed within the number
of bits in the destination operand, cleared otherwise.
AH
Byte
Addressable
(8-Bit
Register
Names
Shown)
Loop/Shift/Repeat/Count
Base Registers
Code Segment
Data Segment
Stack Segment
Extra Segment
Processor Status Flags
Instruction Pointer
General
Registers
Status and Control
Registers
Segment Registers
15 0
15 0
7 0
7 0
15 0
CS
FLAGS
IP
16-Bit
Register
Name
Special
Register
Functions
DS
SS
ES
AX
DX
CX
BX
BP
SI
DI
SP
DH
CH
BH
AL
DL
CL
BL
Index Registers
Stack Pointer
Multiply/Divide
I/O Instructions
16-Bit
Register
Name
base pointer
source index
destination index
15
7
0
IF
TF
SF
ZF
Res
CF
PF
Reserved
Res
AF
Res
OF
DF
Содержание Am186 Series
Страница 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Страница 10: ...Table of Contents x...
Страница 18: ...Programming 1 8...
Страница 40: ...Instruction Set Listing 3 14...