Q2) Find out the error of the following program:
Process: Compile with the MASM compiler and remove the ERROR.
include io.obj
.model small
.586
.data
prompt_msg1 DB 'Please input the first number:',0 prompt_msg2 DB 'Please input the second number:',0 sum_msg DB 'The sum is ',0
.code .startup
PutStr prompt_msg2
GetInt CX
nwln
PutStr prompt_msg3 GetInt DX
[1 Marks]
[1 Marks]
nwln
Call sum
PutStr sum-msg PutInt AX
nwln
done:
.exit;
sum:
mov AX,CX
add AX,DX
ret;
end
Q2) Find out the error of the following program: Process: Compile with the MASM compiler and remove the ERROR. include i
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Q2) Find out the error of the following program: Process: Compile with the MASM compiler and remove the ERROR. include i
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!