You are here : assembly8086LODSB

LODSB - 8086

Load byte at DS:[SI] into AL. Update SI.

Algorithm:  

  • AL = DS:[SI]  
  • if DF = 0 then
    • SI = SI + 1 
  • else
    • SI = SI - 1


Syntax

LODSB


Example

.model small
.data
  a1 DB 'H', 'e', 'l', 'l', 'o' 
.code
  ...
  ...
  LEA SI, a1
  MOV CX, 5
  MOV AH, 0Eh
  m: LODSB
  INT 10h
  LOOP m
  ...
  ...
  end


Output / Return Value


Limitations


Alternatives / See Also


Reference