Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago