Q1) What is the output of the following Assembly Program: Process: Compile with the MASM compiler and check the output i
Posted: Sat May 14, 2022 3:25 pm
Q1) What is the output of the following Assembly Program:
Process: Compile with the MASM compiler and check the output in DOSBOX.
MODEL SMALL
IDATA
CODE
MAIN PROC
MOV AX, @DATA
MOV DX,AX
MOV AL, 20
MOV CL,10
MOV AH,00
DIV CL
MOV DX,AX
ADD DX,3030h
MOV AH,02H
INT 21H
MOV DL,DH
INT 21H
MOV AX, 4COOH
INT 21H
MAIN ENDP
END MAIN
Process: Compile with the MASM compiler and check the output in DOSBOX.
MODEL SMALL
IDATA
CODE
MAIN PROC
MOV AX, @DATA
MOV DX,AX
MOV AL, 20
MOV CL,10
MOV AH,00
DIV CL
MOV DX,AX
ADD DX,3030h
MOV AH,02H
INT 21H
MOV DL,DH
INT 21H
MOV AX, 4COOH
INT 21H
MAIN ENDP
END MAIN