Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSEMBLY LANGUAGE X86 MASM Create an integer array that is 12 elements long. Use the ReadInt procedure in a loop to fill the array with

ASSEMBLY LANGUAGE X86 MASM

Create an integer array that is 12 elements long. Use the ReadInt procedure in a loop to fill the array with numbers taken from the keyboard.

Print the array to the screen with a message like "Here is your array: ".

Use a loop to reverse the first half of the array in place. In place means in the same memory location occupied by the array. Do not copy the elements to any other array and do not create extra variables. It would be a waste of memory. For temporary data, use the CPU registers.

Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible to support the array size and type being changed in the future. If I change the array size in your code to, say, 16, your program should still run correctly, rotating the array elements.

Once you have reversed the first half of the array use a loop to print out each element to prove that the array is correct. Also write a message, "Here is the array with the first half reversed: "

Output any appropriate messages to the display that you feel are needed to make the program clear to the user.

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

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions