Figure 2-16 Formats for the ADD instruction.

(a) Add register to register or memory and store results in register or memory
(b) Add immediate to register (memory) and put results in register (memory)
(c) Add immediate with AX(AL) and store results in AX(AL) - special case for accumulator

Figure 2-17 shows the machine language code for two ADD instructions, both of which add the contents of register BH to the contents of CL and put the result in CL.

Figure 2-17 Two equivalent instructions for adding the contents of the BH register to those of the CL register.

(a) REG indicates destination(b) REG indicates source

Table of Contents | Next page | Previous page

This is page 19.