Experiment-2 : 8085 ALP to add to add two 8-bit numbers 8085 MPI Lab by Ravinder Nath Rajotiya - March 10, 2021June 3, 20210 Experiment-2: Write a program to perform : Addition of two 8 bit numbers without carry. Addition of two 8 bit numbers with carry Objective: To understand the assembly instructions To design assembly program To analyze the given program Flow Chart: Two WAYS OF WRITING PROGRAM IN GNU 8085 SUMULATOR Using direct Addressing Using Register Indirect Program to add two 8-bit numbers(Two approaches) 1st Method 2nd Method Address OP-CODE Mnemonic Comments Address OP-CODE Mnemonic Comments 4000 54H ;1ST OPERAND 4000 X 4001 9FH ;2ND OPERAND 4001 Y 4002 ;RESULT 4002 Z 4008 3A,00,40 LDA 4000 4008 21 00 40 LXI H, X 400B 47 MOV B, A 400B 7E MOV A, M 400C 3A,01,40 LDA 4001 400C 23 INX H 400F 80 ADD B 400D 70 MOV B,M 4010 32,02,40 STA 4002 400E 88 ADD B 4013 76 HLT 400F 23 INX H 4010 77 MOV M,A 4011 76 HLT Addition of two 8 bit numbers with carry The carry is involved in addition either when we add an array of numbers or while adding two 16-bit numbers. First bytes are added with ADD instruction. Addition may result in carry, So