16 bit Assembly

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
  Find character NOT matching value of AL
  AA
SCASW;  16 bit version
  Find character NOT matching value of AX
  AB




Last Update 06/02/2023