LODSB
No operands
Load byte at DS:[SI] into AL. Update SI.
Algorithm:
AL = DS:[SI]
if DF = 0 then
SI = SI + 1
else
SI = SI - 1
Example:
#make_COM#
ORG 100h
LEA SI, a1
MOV CX, 5
MOV AH, 0Eh
m:
LODSB
INT 10h
LOOP m
RET
a1 DB 'H', 'e', 'l', 'l', 'o'
Flags:
C Z S O P A
unchanged