I noticed at my ASM book that author uses that LENGTHOF str for finding the size of byte it is searching. Code:
LENGTHOF str
.data alpha BYTE "ABCDEFGH&q