home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / rtf / chapter13 / fig13.8.tif (.png) < prev    next >
Tagged Image File Format  |  1997-06-18  |  122KB  |  692x667  |  16-bit (15,050 colors)
Labels: bulletin board | crt screen | dialog box | earth | monitor | plant | sidewalk | sky | tree | windowpane
OCR: A FFPF 0000 0003 CF FFFF 0000 FPFE 0000 0003 n CF 1 FFFE BX 0000 0004 FIGURE 13.8 CF can be used to increment DX conditionally depend ing OI1 the sign of AX, without branching by of the following code: shi ax adc dx. bx where BX contains () Sample initial states of F the relevant registers. B How shl ax,1 moves the sign bit of AX into CF (C How the sign bit that was transferred into CF added to DX (a) The final states of the registers: since AX was initially negative DX has been incremented PFPF bran hing foll owing