The Women University, Multan
The Women University, Multan
LAB WORK
Write an assembly language program to sum two 8 bit numbers without using
carry operation in 8086 microprocessor.
ASSUMPTIONS
• Load the first number to the accumulator through memory address 2050.
• Move the content of accumulator to the register B.
• Load the second number to the accumulator through memory address 2051.
• Add the content of accumulator and register B and result will be stored at the accumulator.
• Store the result from the accumulator to the memory address 2052.
• Terminate the program.
EXPLANATION
• LDA 2050: This instruction will load the number from memory to the accumulator.
• MOV B, A: This instruction will move the content of accumulator to the register B.
• LDA 2051: This instruction will load the number from memory to the accumulator.
• ADD B: This instruction will sum the content of the accumulator with the content of the
register B.
• STA 2052: This instruction will store the content of accumulator to the memory address
2052.
Write a program to add two 16-bit numbers where starting address is 2000 and
the numbers are at 3000 and 3002 memory address and store result
into 3004 and 3006 memory address.
ALGORITHM