Home  Site Map  Instruction Index 

STOS  -  Store Instruction


The STOS instruction is used to store data in 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.

Assembly
Sample
Description   16 bit Machine
  Code
STOS AL;  8 bit version stores 1 BYTE from AL to the
;  address at DI
  AA
STOS AX;  16 bit version stores 1 WORD from AX to the
;  address at DI
  AB
STOSB;  8 bit version stores 1 BYTE from AL to the
;  address at DI
  AA
STOSW;  16 bit version stores 1 WORD from AX to the
;  address at DI
  AB