We learned negation with the NEG instruction in Chapter 4, "Bit Mangling," and binary multiplication (2 N ) and division using bit shifting in Chapter 5, "Bit Wrangling."
We can add 8-, 16-, 32-, and 64-bit numbers , and 4-bit if you include BCD (binary-coded decimal) discussed later in Chapter 15.
|No 64-bit|| |
The general-purpose BCD instructions are not available in 64-bit mode!
The EFLAGS Overflow, Sign, Zero, Auxiliary Carry, Parity, and Carry are all altered when using the general-purpose instructions.
Whether the numbers overflow the binary limit of the destination operand
Set to the resulting value of the MSB (most significant bit)
Set if the result is a value of zero
Set as a result of a carry of the low-order nibble
Set to 1 if the bits add up to an even number; 0 if not
Any mathematical carry results of the mathematical operation
ADD destination , source
Windows Assembly Language and Systems Programming: 16- and 32-Bit Low-Level Programming for the PC and Windows