Instruction Set
4-201
REPZ
Repeat While Zero
REPZ
What It Does
REPE and REPZ repeatedly execute a single string
comparison instruction; an unsigned
number in CX tells the microcontroller the maximum number of times to execute the
instruction. Once the instruction compares two components and finds they are not equal,
the instruction is no longer executed.
See REPE on page 4-193 for a complete description.
Form
Prefix
Opcode
Description
Clocks
Am186 Am188
REPZ CMPS
m8,m8
F3 A6
Find nonmatching bytes in ES:DI and segment:[SI]
5+22
n
5+22
n
REPZ CMPS
m16,m16
F3 A7
Find nonmatching words in ES:DI and segment:[SI]
5+22
n
9+22
n
REPZ SCAS
m8
F3 AE
Find non-AL byte starting at ES:DI
5+15
n
5+15
n
REPZ SCAS
m16
F3 AF
Find non-AX word starting at ES:DI
5+15
n
9+15
n
Содержание 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...