Develop a short sequence of instructions that adds AL, BL, CL, DL, and AH. Save the sum in the DH register
Answers
Answered by
4
A short sequence of instructions that adds AL, BL, CL, DL, and AH and save the sum in the DH register is given below :
MOV AL , 10H ; AL = 10H
MOV BL , 20H ; BL = 20H
MOV CL , 30H ; CL = 30H
MOV DL , 40H ; DL = 40H
MOV AH , 50H ; AH = 50H
ADD AL , BL ; AL = AL + BL
ADD CL , DL ; CL = CL + DL
ADD AL , CL ; AL = AL + CL
ADD AL , AH ; AL = AL + AH
MOV DH , AL ; DH = AL
HLT ; EXIT
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Math,
4 months ago
Math,
8 months ago
Math,
1 year ago