Question: .586 .MODEL FLAT INCLUDE io.h ; header file for input/output .STACK 4096 .DATA lenght DWORD ? width DWORD ? height DWORD ? prompt1 BYTE Enter
.586 .MODEL FLAT
INCLUDE io.h ; header file for input/output
.STACK 4096
.DATA
lenght DWORD ? width DWORD ? height DWORD ?
prompt1 BYTE "Enter a lenght ", 0 prompt2 BYTE "Enter a width", 0 prompt3 BYTE "Enter a hight", 0
string BYTE 40 DUP (?) resultLbl BYTE "The volume is", 0 res BYTE 11 DUP (?), 0
.CODE _MainProc PROC input prompt1, string, 40 ; read ASCII characters atod string ; convert to integer mov length, eax ; store in memory
input prompt2, string, 40 ; repeat for second number atod string mov width, eax
input prompt3, string, 40 ; repeat for third number atod string mov height, eax mov eax, length ; first number to EAX mul eax, width ; add second number mul eax, height ; add second number
dtoa res, eax ; convert to ASCII characters output resultLbl, res ; output label and sum
mov eax, 0 ; exit with return code 0 ret _MainProc ENDP END ; end of source code
i Got these errors 
Error List Error List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
