Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is to be done with the x86 assembly Lintitled dnement - Google Dn: X pre 240 - Activerofrece x 40is2 12m+an c X 24

image text in transcribedimage text in transcribed

this is to be done with the x86 assembly

Lintitled dnement - Google Dn: X pre 240 - Activerofrece x 40is2 12m+an c X 24 enignment2.act - X + C D docs.google.com/viewer?s-vpid-sitescid-ZnVsbGVy LmVkdXchY3Rpdmwomir ZXN2b3182396N2BkYjIwNDY3MDg2ZjU1NA W 240assignment2.c 20 Open with Google Docs-240 Assignment 2: Arrays Goal We want to know how to use use arrays and how to implement iteration Programming requirements Make a hybrid program that produces the following output. Additional details will be given later. Sample run Welcome to Arrays of Integers Bought to you by Jaime Ward This program will reverse your array of integers Enter a sequence of long integers separated by white space. After the last input press enter followed by Control+D: 3-12 921 4 13 ccntl+D> These number were received and placed into the array: 3 -12 9 5 4 13 After the reverse function these are the numbers of the array in the new order: 13 4 5 9 -12 3 The number of numbers entered is 6 and the mean is 3 The mean will now be returned to the main function. Main received this number 3 Main will retum 0 to the operating system. Bye. The section within the rectangle is outputted by the x86 manager function Page 113 - Q + Pale e o wa CE4300 Lintitled dnement - Google Dn: X pre 240 - Activerofrece x 40is2 12m+an c X 24 enignment2.act + C D docs.google.com/viewer?s-vpid-sitescid-ZnVsbGVy LmVkdXchY3Rpdmwomir ZXN2b3182396N2BkYjIwNDY3MDg2ZjU1NA W 240assignment2.c Other facts Open with Google Docs The first module to execute has source code written in C++. The first to execute program is sometimes called the driver program The second module is written in X86. This program produces all the output inside the rectangle on the preceding page. Obviously you change the name of the author in the example to be your own name. Make a bash file that compiles and runs everything related to this program. Required Software Architecture Main Manager Display Array Reverse XB6 There are 4 functions in the program. You can see their names in the diagram above. Main calls Manager, Manager calls Display_Array and later calls Reverse. There will be four files - each file contains one source function The fifth file is the Bash file that will compile the 4 sources in any order) and then link the 4 object files making one executable file. All the work is performed by Manager except output the array and reverse the array. Page 2 | 3 - Q + Pale e o wa C E E 11:37 AM Lintitled dnement - Google Dn: X pre 240 - Activerofrece x 40is2 12m+an c X 24 enignment2.act - X + C D docs.google.com/viewer?s-vpid-sitescid-ZnVsbGVy LmVkdXchY3Rpdmwomir ZXN2b3182396N2BkYjIwNDY3MDg2ZjU1NA W 240assignment2.c 20 Open with Google Docs-240 Assignment 2: Arrays Goal We want to know how to use use arrays and how to implement iteration Programming requirements Make a hybrid program that produces the following output. Additional details will be given later. Sample run Welcome to Arrays of Integers Bought to you by Jaime Ward This program will reverse your array of integers Enter a sequence of long integers separated by white space. After the last input press enter followed by Control+D: 3-12 921 4 13 ccntl+D> These number were received and placed into the array: 3 -12 9 5 4 13 After the reverse function these are the numbers of the array in the new order: 13 4 5 9 -12 3 The number of numbers entered is 6 and the mean is 3 The mean will now be returned to the main function. Main received this number 3 Main will retum 0 to the operating system. Bye. The section within the rectangle is outputted by the x86 manager function Page 113 - Q + Pale e o wa CE4300 Lintitled dnement - Google Dn: X pre 240 - Activerofrece x 40is2 12m+an c X 24 enignment2.act + C D docs.google.com/viewer?s-vpid-sitescid-ZnVsbGVy LmVkdXchY3Rpdmwomir ZXN2b3182396N2BkYjIwNDY3MDg2ZjU1NA W 240assignment2.c Other facts Open with Google Docs The first module to execute has source code written in C++. The first to execute program is sometimes called the driver program The second module is written in X86. This program produces all the output inside the rectangle on the preceding page. Obviously you change the name of the author in the example to be your own name. Make a bash file that compiles and runs everything related to this program. Required Software Architecture Main Manager Display Array Reverse XB6 There are 4 functions in the program. You can see their names in the diagram above. Main calls Manager, Manager calls Display_Array and later calls Reverse. There will be four files - each file contains one source function The fifth file is the Bash file that will compile the 4 sources in any order) and then link the 4 object files making one executable file. All the work is performed by Manager except output the array and reverse the array. Page 2 | 3 - Q + Pale e o wa C E E 11:37 AM

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

Step: 3

blur-text-image

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions