home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter11 / fig11.12.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  200KB  |  746x563  |  16-bit (20,960 colors)
Labels: book | box | bulletin board | reckoner | shelf | sky
OCR: Memory Start of string 10301 Every byte up to and be searched including the terminating 10302 zero byte must be read 10303 exactly once While we 10304 can check for both 10305 non- -blank char acter 10306 and the terminating zero after each read, there's 10307 10308 no way to be sure we ve found the last -uou -blank 10309 character untll we ve Last non-blank 030A checked every char acte characte 1030B 1030C 1030D 1030E FIGURE 11.12 When lods and cmp arc used to find the last non blank character in a 0-terminated string every byte in the string must always be read Although each byte can be loaded into the accumulator and tested at once both for blank nonblank status aud for being the 0 that terminates the string nonetheless necessary to read every byte right up through the terminating 0; we ...