'Addition of two 8bit numbers, sum 8 bit. in 8085 micro processor using jubin simulator

My question is mention below with the theory. but i'm unable to do the correct programming. please help me in that how should i correct my Program

AIM:

Addition of two 8bit numbers, sum 8 bit.

THEORY:

1. Load H-L pair with address 1000H. 2.Lower-order of 1000H. 3.Higher-order of 1000H. 4. Move the 1st operand from memory to reg. A. 5. Increment H-L pair. 6, Move the 2nd operand from memory to reg. B. 7. Initialize reg. C with 00H. 8. Immediate value 00H. 9. Add B with A. 10. Jump to address 000DH if there is no carry. 11. Lower-order of 000DH. 12. Higher-order of 000DH. 13. Increment reg. C. 14. Increment H-L pair. 15. Move the result from reg. A to memory. 16. Increment H-L pair. 17. Move carry from reg. C to memory. 18. Halt.

# ORG 1000H
       LXI H,1000
       MOV A,M
       INX H
       MOV B,M
       MVI C,00
       ADD B
       JNC 000D
       INR C

000D:      INX H
       MOV M,C
       HLT
# ORG 1000H
# DB 03H, 04H


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source