Home  Site Map  Instruction Index 

MOVS  -  Move Instruction


The MOVS instruction is used to move 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 LODSB and LODSW it can be used to move data between sements.

Both SI and DI are incremented on each call.



Assembly
Sample
Description   16 bit Machine
  Code
MOVS AL, BL;  8 bit version moves BYTES from SI in to DI   A4
MOVS AX, BX;  8 bit version moves BYTES from SI in to DI   A5
MOVSB;  8 bit version moves BYTES from SI in to DI   A4
MOVSW;  16 bit version moves WORDS from SI in to DI   A5