16 bit Assembly
Home Site Map Instruction Index
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.
Assembly Sample | Description | 16 bit Machine Code |
---|---|---|
LODSB | ; 8 bit version Load bytes from SI in to AL | AC |
LODSW | ; 16 bit version Load Words from SI in to AX | AD |