| UMBC CMSC 211 |
adc dest, source ;dest = dest + source + CarryFlag sbc dest, source ;dest = dest - source - CarryFlag
carry carry carry carry carry A4 A3 A2 A1 A0 + B4 B3 B2 B1 B0 ----- ----- ----- ----- ----- C4 C3 C2 C1 C0
; Multiple precision addition
mov eax, A0
add eax, B0
mov C0, eax ; Does not affect the carry flag!
mov eax, A1 ; Does not affect the carry flag!
adc eax, B1
mov C1, eax ; Does not affect the carry flag!
mov eax, A2 ; Does not affect the carry flag!
adc eax, B2
mov C2, eax ; Does not affect the carry flag!
mov eax, A3 ; Does not affect the carry flag!
adc eax, B3
mov C3, eax ; Does not affect the carry flag!
mov eax, A4 ; Does not affect the carry flag!
adc eax, B4
mov C4, eax ; Does not affect the carry flag!
There are two other instructions that do not affect the carry flag, inc and dec.