Home  Site Map  Instruction Index 

SCAS  -  Compare Instruction


The SCAS instruction is used to compare the contents of AL or AX with data at the address of SI. 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
SCASB;  8 bit version finds a character NOT matching
;  the value of AL
  AA
SCASW;  16 bit version finds a character NOT matching
;  the value of AX
  AB