, -, . () 8, 16 32 .
al/ax/eax. , .
.
:
- scas _ (SCAning String) ;
- scasb (SCAning String Byte) ;
- scasw (SCAning String Word) ;
- scasd (SCAning String Double Word) .
scas
scas _
, ( es:edi/di).
_, , scasb, scasw scasd.
. , db, al, scasb; dw, ax, scasw; dd, eax, scasd. , cmps,
(__ - ___).
, .
, cmps, scas repe/repz repne/repnz:
repe repz , :
( ecx/cx 0);
, al/ax/eax;
repne repnz , :
( ecx/cx 0);
, al/ax/eax.
, scas repe/repz , .
scas repne/repnz , .