Transfers string element addressed by DS:SI (even if an operand is supplied) to the accumulator. SI is incremented based on the size of the operand or based on the instruction used. If the Direction Flag is set SI is decremented, if the Direction Flag is clear SI is incremented.
Can be used with REP prefixes.
Usage:
LODS src LODSB LODSW LODSD ; 386+ only
Modifies regs:
AL or AX or EAX
286+ only 386+ only
Clocks | Size | |||||
---|---|---|---|---|---|---|
Operands | 808x | 286 | 386 | 486 | Bytes | |
src | 12 | 5 | 5 | 5 | 1 | 8 bits |
src | 16 | 5 | 5 | 5 | 1 | 16 bits |