Question: 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  Do all. Computer language is both c++ and assembly language Please

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!