Write ALP to add two hexadecimal number 28H AND 32H. Store sum to memory location C000H
Answers
Answered by
1
Explanation:
Sample problem
(4000H) = 14H
(4001H) = 89H
Result = 14H + 89H = 9DH
Source program
LXI H 4000H : "HL points 4000H"
MOV A, M : "Get first operand"
INX H : "HL points 4001H"
ADD M : "Add second operand"
INX H : "HL points 4002H"
MOV M, A : "Store result at 4002H"
HLT : "Terminate program execution
Mark me as brain list
Similar questions