March 2010
Beginner
760 pages
18h 51m
English
The btx, shift, and rotate instructions set or clear the carry flag depending on the operation and selected bit. Because these instructions place their "bit result" in the carry flag, it is often convenient to think of the carry flag as a 1-bit register or accumulator for bit operations. In this section we will explore some of the operations possible with this bit result in the carry flag.
Instructions that will be useful for manipulating bit results in the carry flag are those that use the carry flag as some sort of input value. The following is a sampling of such instructions:
adc, sbb
rcl, rcr
cmc (We'll throw in clc and stc even though they don't use the carry as input.)
jc, jnc
setc, setnc
The adc and sbb ...