home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter11 / fig11.10.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  255KB  |  725x705  |  16-bit (22,035 colors)
Labels: book | box | bulletin board | reckoner | shelf | sky
OCR: Memory Start ot string to 10301 be searched 10302 10303 Every byte in the string 1030 right up through the 10305 F terminating zero must first be read because 10306 we need to know the 10307 First search match byte fo1 1.0308 bytes maximum can to look check for number the before of 10309 first match 1030A 1030B 1030C 1030D 1030E FIGURE 11.10 when repeated scas is used to find a given character in a 0-terminated string double search method must be used (A) Every byte ir the string must first be read in order to find the terminating This gives us the length of the string SO we know the maximum number of bytes to search ir the second step. B The second step involves searching again from the beginning of the string. this time looking for the desited byte If all the bytes ppai i the first step ...