write a program to add 2 numbers stored at c030 and c031. store the sum at c032 and carry at c033
AdrijaS:
are you talking about a 8085 program?
Answers
Answered by
1
//Manually store 1st no in the memory location C030 & 2nd no in the memory location C031
//Result is stored in C032 & C033
LXI H,C030
MVI C,00
MOV A,M
INX H
ADD M
DAA
JNC FINAL
INR C
FINAL: STA C033
MOV A,C
STA C032
HLT
DAA will change the contents of accumulator from binary value to BCD digit. S, Z, CY ,AC, P flags are altered to reflect the result of the operation.
HOPE THIS HELPS. GIVE STARS TO HELP THIS ANSWER REACH OUT TO EVERYONE.
Similar questions