Question: Please code in 32bit x86 assembly code Create a procedure named ReturnLargestValue that receives two explicit stack parameters: a pointer to a signed doubleword array,
Please code in 32bit x86 assembly code
Create a procedure named ReturnLargestValue that receives two explicit stack parameters: a pointer to a signed doubleword array, and a pointer to the count of the arrays length. The procedure must return the literal value of the largest signed array member in EAX. Use Base-Offset Addressing along with EBP and ESP to use explicit stack parameters ands make sure your PROC cleans up the stack. (Hint: Use the ArrayFill Example from Chapter 8 as a starting point). Preserve all registers (except EAX) that are modied by the procedure. Write a test program that calls the PROCand passes three different arrays of different lengths. Write the largest value to the console using a call to WriteInt. Be sure to include negative values in your test arrays.
Submit your code (.asm file)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
