Write a program that adds ten numbers and store the result in register AX,BX,CX,DX and DS
1
Expert's answer
2021-11-04T00:24:11-0400
start:movax,10addax,2; ax = 10+2MOVDS,AX; move result to DSmovax,3addax,2; ax = 2+3movbx,4addbx,8; bx = 4+8movcx,4addcx,1; cx = 4+1movdx,8adddx,4; dx = 8+4movah, 4chint21h
ends
end start ; set entry point and stop the assembler.
Comments