Intel 80286 Computer Accessories User Manual


 
THE
80286
INSTRUCTION SET
LODS/LODSB/LODSW-Load
String
Operand
Opcode
AC
AD
AC
AD
FLAGS MODIFIED
None
Instruction
LODS mb
LODS
mw
LODS8
LODSW
FLAGS UNDEFINED
None
OPERATION
Clocks
5
5
5
5
Description
Load byte [SI] into
AL
Load word [SI] into AX
Load byte
DS:[SI] into
AL
Load word DS:[SI] into AX
LODS loads the AL or AX register with the memory byte or word at SI. After the transfer
is
made,
SI
is
automatically advanced.
If
the direction flag
is
0 (CLD
was
executed), SI increments; if the
direction flag
is
1 (STD
was
executed),
SI
decrements. SI increments or decrements by 1 if a byte
was
moved;
by
2 if a word
was
moved.
PROTECTED MODE EXCEPTIONS
#GP(O)
for an illegal memory operand effective address in the CS, DS, or ES segments;
#SS(O)
for an
illegal address in the
SS segment.
REAL ADDRESS MODE EXCEPTIONS
Interrupt
13
for a word operand at offset OFFFFH.
8-69