
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
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

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
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.Similar questions
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education