home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zoa / wp42 / chapter11 / fig11.15a.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-13  |  246KB  |  692x730  |  16-bit (21,339 colors)
Labels: book | bulletin board | reckoner | sky
OCR: ropnz Momory scash Start of text 10780 butfer 1030 search 10302 1078 10303 10782 10304 1030F 10306 030 Start of seguence 10308 of bytes to find 10309 10304 1030B 1030C 1030D 030K FIGURE 11.15 We cal1 speed up the search for a fixed. -length sequence bytes in text buffer considerably by using repnz scasb tc climinate many buffer locations as potential sequence starting locations. This is accomplished by ing repnz scasb tc search the text buffer for the first character of the scquence. and then using repz emps t check only those potential sequences that have been prequalified by repnz scasb (A The use of repnz scasb to climinate the first bytes of the buffer as DO tential sequence starting hytes. (B) The single repz cmps needed tc compare the remainder of the match found by repnz scasb This ...