Home  Site Map  Instruction Index 

LODS  -  Load Instruction


The LODS instruction is used to load data from SI in to the address at DI. This instruction is typically used with a CX counter and either REP or LOOP to repeat the task mutltiple times.

This command has 1 part the Instruction.

Unlike MOVSB and MOVSW it can only be used to move data in the same sement.

The SI register is incremented with each call



Assembly
Sample
Description   16 bit Machine
  Code
LODS AL;  8 bit version to load 1 BYTE in to AL  AC
LODS AX;  16 bit version to load 1 WORD in to AX   AD
LODSB;  8 bit version to load 1 BYTE from SI in to AL   AC
LODSW;  16 bit version to load 1 WORD from SI in to AX   AD