Intel 80286, 80287 manual LODS8, Lodsw

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 279
Image 279

THE 80286 INSTRUCTION SET

LODS/LODSB/LODSW-Load String Operand

Opcode

Instruction

Clocks

Description

AC

LODS

mb

5

Load byte [SI] into AL

AD

LODS

mw

5

Load word [SI] into AX

AC

LODS8

5

Load byte DS:[SI] into AL

AD

LODSW

5

Load word DS:[SI] into AX

FLAGS MODIFIED

None

FLAGS UNDEFINED

None

OPERATION

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

Page 279
Image 279
Intel 80286, 80287 manual LODS8, Lodsw