Instructions (cont.)
2. Arithmetic and bit manipulation operations
ä Add, subtract, multiply, divide
ä Ex: ADD destination, source
ä Add the contents of source to the contents of
destination and leave the result in destination
ä Modify the flags as appropriate
ä Bit manipulation
ä Logical (and, or, xor, not)
ä Shift (left, right, logical/arithmetic)
ä Rotate (left, right)
ä Flag manipulation (set, clear, complement)
ä Ex: SHR destination, count
ä Shift the contents of the destination right the number
of bits specified in the count
ä For each bit shifted, zero is shifted into the most
significant bit (MSB)
ä Modify flags as is appropriate