Question
Assembly Language I am trying to store user's input as varD after displayed msg2. However, it automatically set al to What is the value of
Assembly Language
I am trying to store user's input as varD after displayed msg2. However, it automatically set al to "What is the value of D?", which is msg2. It does not give user any chance to enter anything. I have no idea how to deal with it, please help me solve this problem. Thanks for your time.
INCLUDE Irvine32.inc
.data varD BYTE ? msg2 BYTE "What is the value of D?",0
.code main PROC
; initialized varD mov edx,OFFSET msg2 CALL WriteString CALL ReadString ; returned to eax mov varD, AL ; store value to C ; display msg2 and al CALL WriteString CALL Crlf CALL WriteString
exit
main ENDP
END main
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started