SCAS instruction? How it checks null string?
SCAS compares a source byte or word in register AL or AX with the destination string element addressed by ES:DI and updates the flag. We use SCASB with REPNE and a zero in AL to find a zero byte in the string. In CX we load the maximum possible size, which are 64K bytes.
SCAS instruction? How it checks null string?
Reviewed by MCH
on
December 25, 2012
Rating:
No comments: