Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education