Assembly Math Flashcards
1
Q
CTC
A
clear carry flag
2
Q
STC
A
set carry flag
3
Q
CMC
A
flip carry flag
4
Q
ADC
A
Adds two values and adds 1 if carry flag is set.
5
Q
SBB
A
Subtracts two values and subtracts an additional one if carry flag if carry flag is set.
6
Q
OF and CF
A
Both set to 1 if upper half of a multiplication is non-zero. For example, if AL is multiplied by an 8-bit number and the result extends up into AH, both flags set. If EAX is multiplied by a 32 bit number and extends into EDX for overflow, both bits are set.