
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
Concept explainers
Question
use Irvine32

Transcribed Image Text:Description:
Write an x86 assembler program that does the following:
a. Gets information (first name and age) from the console,
b. Stores that information in memory
c.
Reads the stored information and outputs it out to the console. Thus, the outputs
should echo your inputs.
This program will make use of the 32-bit Irvine assembler library; you can find the source code
for his library in the file: Irvine32.asm.
The below image shows what a sample session of the program looks like:
EX Microsoft Visual Studio Debug Console
CPSC 232 Program #1
Enter your name >> Robert
Enter your age >> 56
Your name is: Robert
Your age is: 56
C:\Users\rmarm\Documents\Academic\CPSC 232\Irvine Text\Project32_VS2019\Debug\Project.exe (process 17196) exited with co
de 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the conso
le when debugging stops.
Press any key to close this window...
Caveats:
• Your program must be written using Visual Studio (VS), MASM, and the Irvine 32-bit
library
•
•
•
•
Be sure to download and inspect the example code from the Irving textbook site prior to
writing this program. Specifically, look at the code examples in Chapter 5 - these
exercise the Irvine library functions you will need.
• You must reserve sufficient memory for your name and age. Make sure you store the
input information in the memory prior to outputting it. Name must be stored as a
string; age as an integer data type.
Suggest you step through your program with the VS debugger to make sure the data is
being stored properly
X
No error checking is required for this program.
When you are finished with each, put the *.asm file into a single ZIP file and upload
them it D2L by the due date. The name of this Zip file should be the same as your
surname (e.g., Marmelstein.zip).
• I will be reassembling and testing your program, so be sure to include the source code
(*.asm file)
Expert Solution

arrow_forward
Step 1
Algorithm:
- Declare data section and define variables to hold the user inputs and stored information.
- Prompt the user to enter their first name and age.
- Read in the user inputs from the console using the appropriate system call.
- Store the user inputs in memory by copying them from the input buffer to the storage buffer.
- Output a message to inform the user that the information has been stored.
- Load the stored information from memory into registers.
- Output the stored information to the console using the appropriate system call.
- End the program.
Step by stepSolved in 4 steps with 2 images

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
- What is 7/3 as a normal-form, binary fraction? a. 1.00101010…×2^−1 b. 10.0101010…×2^1 c. 10.0101010…×2^−1 d. 1.00101010…×2^1arrow_forwardSolve using assembly language x86 processors and compatibles Prompt the user for coefficients a, b, and c of a polynomial in the form ax2 + bx + c = 0. Calculate and display the real roots of the polynomial using the quadratic formula. If any root is imaginary, display the appropriate message.arrow_forward4. Write a program to get 8-bit data from P2 and send it to ports PO, P1, and P3. ORG 0000H MOV MOV P2, A MOV A, P2 HERE: SJMP HERE ENDarrow_forward
- There are several PS Session related cmdlets that we can use with PowerShell Remoting, please write any four of these cmdlets.arrow_forwardHello. I need help developing a C or C++ program that simulate an 8-port Ethernet switch. The switch initially has no knowledge about the hosts connected to each port. It learns frame addresses and stores-and-forwards the frames. The input text file "in.txt" contains information of the incoming frames, one frame per line. There are 4 pieces of data per line: frame ID, arrival port, frame source address,and frame destination address. The frames arrive at the switch in the order of which they appearin the input file. Destination address "X" indicates a broadcast frame. Thank you! ********************PLEASE YOUR CODE MUST BE COMPLETE, COMPILE AND EXECUTE**************** The output text file "out.txt" has 8 lines. Each line lists all the frames departing from each port, here is an example: "in.txt" contains 5 incoming frames:F1 P2 B--AF2 P6 D--CF3 P5 E--BF4 P7 F--DF5 P6 D--X"out.txt" should list the departing frames on each port:P1: F1 F2 F5P2: F2 F3 F5P3: F1 F2 F5P4: F1 F2 F5P5: F1…arrow_forwardsee imagearrow_forward
- 1- Configure the 8255 as the following port A as Output, B as Input, and all the bits of port C as Output assuming a base address of 3A0h. What is the correct code that read a value from port B and then output is to both port A and port C 3020181 MOV AL, 82h OUT 3A3,AL IN AL, 3A1 OUT 3A0, AL OUT 3A2, AL b) None Of Above MOV AL, 90h C) OUT 53,AL IN AL, 51 OUT 50, AL OUT 52, AL d) MOV AL, 81h OUT 3A2,AL IN AL, 3A1 OUT 3A0, AL OUT 3A3, AL Boş bırakarrow_forwardWhich of these addresses represents a valid loopback address? (Choose all that apply.)arrow_forwardCan you please implement me code for c programming language using for windows not linux That using multithreaded tcp connection doing just parity check and checksum error detection My first client name be client 1 and message hello server Same for client 2 so lastly can pass error detections and my message not be discardedarrow_forward
- Draw a FSA which accepts all binary strings which start with 0, the length of the string is even but the number of 1's in the string is odd. 0111, 01 and 000111 should be accepted while 111 and 0011 should notarrow_forwardWhat is 7373 as a normal-form, binary fraction? a. 1.00101010…×2^−1 b. 10.0101010…×2^1 c. 10.0101010…×2^−1 d. 1.00101010…×2^1arrow_forward
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