8086 ADD Instruction Edit
Add is an arithmetic instruction that adds the second operand with the first and stores the result in the first operand.
the second operand can be an immediate number, a register, or a memory location. & the first operand also can be a general-purpose register or a memory location. both operands can be a byte or a word and should be of the same size. If you need to add an 8 bit value ( byte ) to a word you must copy the byte to word location and fill the upper byte of the word with zero before addition.
following flags are affected by an add instruction
AF, CF, OF, SF, ZF
Types of operands supported
Instruction Operands ---------------------------- ADD REG, memory memory, REG REG, REG memory,immediate REG,immediate
mov al,08 ; copy the value 08 to al add al,02 ; al = al 2, the value of al will be 10 after addition