home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zoa / wp42 / chapter11 / fig11.1.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-13  |  197KB  |  780x788  |  16-bit (17,052 colors)
Labels: box | bulletin board | shelf | skep | sky
OCR: DF DS Memory lodsh Convert to uppercase stosb AL FC FIGURE 11.1 Together lods and stos provide fast flexible array and string handling This figure illustrates that principle by showing the use Of lodsb stosb to copy an converring all lower characters to upper case in the process. with the tollowing code: cld Loop1 Top lodsb get the next character cmp al,'a :is it below the lower case range? IsUppe ;yes we're all set cmp is it above the lowercase range? IsUpper :yes -we're all set and al,not 20h ;it's Jowercase- make it upper case IsUpper stosb ;save the uppercase character to the destination loop Loop Top ;copy convert the next character charac cters LoopT