home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter11 / fig11.7a.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  167KB  |  667x713  |  16-bit (20,723 colors)
Labels: book | box | bulletin board | reckoner
OCR: Memory 20000 20001 DF 20002 00 20003 01 AX 9999 20004 02 20005 03 DS 2000 2000 04 20007 05 0007 20008 20009 The byte that will be read by lodsh FIGURE 11.7 When Dr is 1 problems can occur when byte- and word sized string instructions are mixed. since the address the next byte is not the same as the address of the next word. This figure shows that the last bytes of memory block are read incorrectly with the following code: std lodsh lodsw (A) The byte that will be read by the initial lodsb This is indeed the last byte of the block, as intended. The word that will be read by the following lodsw This word daes not contain the bytes immediately preceding the last byte of the block: rather 11 contains the lasr hyte of the block again along with the next to last byte of the block Also, B) shows ...