home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter11 / fig11.13a.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  301KB  |  701x746  |  16-bit (23,490 colors)
Labels: book | box | bulletin board | reckoner | shelf
OCR: Memory Start at string to 1030 Every byte in the string he searched right up through the 10302 terminating zero must 10303 first be read, because WE 10304 need ta know both the 10305 location of the end of the 10306 string and the maximum number of fbytes to 10307 check before we can 10308 look for the last 10309 -uou -blank character Last uou blank .0307 character 1030B 1030C 1030D 1030E FIGURE 11.13 when repeated scas is used to find the last non-blank character in a 0 terminated string double search method tuust be used. (A) Evcry byte in the string must first be read in order to find the terminaring 0 This gives us the length of the string SO we know the maxi imum nunber of bytes to search in the second step. This first step also tells us where to start our search for the last nonblank ...