Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do all. Computer language is both c++ and assembly language Please create int array with 5 elements. Each element is a random number between 10

Do all. Computer language is both c++ and assembly language image text in transcribed
Please create int array with 5 elements. Each element is a random number between 10 and 50. These numbers shall be generated by a function rand). (10 points) . Display the value of each element in the int array in the formats of Decimal (5 points) b. Hexadecimal (5 points) e. Binary (5 points) 2. Address a Find the address of element 0 in the array. (5 points) b. Display this address in hexadecimal format (5 points) 3. Addressing mode Display the array address in the hexadecimal format (5 b. Find the content at the address of (2+ the array address) by e. Display the content value at the address of (2+ the array points) indirect addressing mode. (5 points) address) in decimal format. (5 points) 4. Perform ADD operation a Find the sum of element 0 and element 1 of the array by the instruction ADD. (5 points) b. Display the value of element 0, element , and the sum of element 0 and element 1 in the decimal format. (5 points) s. Perform OR operation The operant 1 can be the element 2 of the array (5 points) b. The operant 2 can be the element 3 of the array (5 points) e. Display the operands and the result in the binary format (5 points) 6 STACK data structure Store last element of the array into the top of the stack data structure by the instruction of PUSH. (5 points) b. Display the element value in the decimal format (5 points) e. Display the value of the register ESP before and after execution of PUSH instruction in the hexadecimal format (5 points)

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions