Prerequisite for Step2: ReadString (from Irvine32 Library) The ReadString procedure reads a string from the keyboard, stopping when the user presses the Enter key. Pass the offset of a buffer in EDX and set ECX to the maximum number of characters the user can enter, plus 1 (to save space for the terminating null byte). The procedure returns the count of the number of characters typed by the user in EAX. Sample call: .data ; input buffer ; holds counter buffer BYTE 21 DUP(0) bytecount DWORD ? remrk, byte "Enter a string: ",0 .code main proc mov edxQFEESET buffer mov ecxSIZFQE buffer call Beadstring mov bytecQuntacax ; point to the buffer ; specify max characters ; input the string ; number of characters ReadString automatically inserts a null terminator in memory at the end of the string. The following is a hexadecimal and ASCII dump of the first 8 bytes of buffer after the user has entered the string "ABCDEFG": 41 42 43 44 45 46 47 00 ABCDEFG The variable bvteCount equals 7. Step2. Extend Stepl to get a string from a user using ReadString procedure. Please comment out the declarations of variables used in Step1 rather than deleting them. Your output should be shown as below. C C:\Windows\system32\cmd.exe Please insert a string: Towson_university Towson_university ytisrevinu_noswot Press any key to continue

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please send asm file and follow all the steps. I need a complete answer to study for final so little explanation would be helpful. Thank you 

Prerequisite for Step2:
ReadString (from Irvine32 Library) The ReadString procedure reads a string from
the keyboard, stopping when the user presses the Enter key. Pass the offset of a
buffer in EDX and set ECX to the maximum number of characters the user can
enter, plus 1 (to save space for the terminating null byte). The procedure returns
the count of the number of characters typed by the user in EAX. Sample call:
.data
; input buffer
; holds counter
buffer BYTE 21 DUP(0)
bytecount DWORD ?
Kemrk byte "Enter a string: ",0
.code
main proc
mov edxQFEESET buffer
mov ecxSIZFQE buffer
call Beadstring
mov bytecQuntcax
; point to the buffer
; specify max characters
; input the string
; number of characters
ReadString automatically inserts a null terminator in memory at the end of the
string. The following is a hexadecimal and ASCII dump of the first 8 bytes of
buffer after the user has entered the string "ABCDEFG":
41 42 43 44 45 46 47 00
ABCDEFG
The variable bvteCount equals 7.
Step2. Extend Stepl to get a string from a user using ReadString procedure.
Please comment out the declarations of variables used in Step1 rather than deleting
them. Your output should be shown as below.
C C:\Windows\system32\cmd.exe
Please insert a string: Towson_university
Towson_university
ytisrevinu_noswoT
Press any key to continue
Transcribed Image Text:Prerequisite for Step2: ReadString (from Irvine32 Library) The ReadString procedure reads a string from the keyboard, stopping when the user presses the Enter key. Pass the offset of a buffer in EDX and set ECX to the maximum number of characters the user can enter, plus 1 (to save space for the terminating null byte). The procedure returns the count of the number of characters typed by the user in EAX. Sample call: .data ; input buffer ; holds counter buffer BYTE 21 DUP(0) bytecount DWORD ? Kemrk byte "Enter a string: ",0 .code main proc mov edxQFEESET buffer mov ecxSIZFQE buffer call Beadstring mov bytecQuntcax ; point to the buffer ; specify max characters ; input the string ; number of characters ReadString automatically inserts a null terminator in memory at the end of the string. The following is a hexadecimal and ASCII dump of the first 8 bytes of buffer after the user has entered the string "ABCDEFG": 41 42 43 44 45 46 47 00 ABCDEFG The variable bvteCount equals 7. Step2. Extend Stepl to get a string from a user using ReadString procedure. Please comment out the declarations of variables used in Step1 rather than deleting them. Your output should be shown as below. C C:\Windows\system32\cmd.exe Please insert a string: Towson_university Towson_university ytisrevinu_noswoT Press any key to continue
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education