Question: Assembly x84 Objective: Learn conditional processing: Comparison and jump instructions, if and while statements, and learn data transfer concepts and instructions, and memory allocation. Requirements:

Assembly x84

Assembly x84 Objective: Learn conditional processing: Comparison and jump instructions, if and

Objective: Learn conditional processing: Comparison and jump instructions, if and while statements, and learn data transfer concepts and instructions, and memory allocation. Requirements: Write an assembly program to find the largest element by searching an array int ary [] = {1, 5, -3, -4, 0, 6, 11, -9, 18} int index = 0; int max = ary[0]; int arraySize = sizeof array/sizeof max while (index max) max = ary|index|;} Use cmp instruction and the appropriate jump instruction (signed or unsigned) to translate the if and while statements Use S operator (see chapter 3) to calculate the size of the array, and inc instruction to increment the index of the array Run your program using the debugger to verify your answers (do this too for questions 2 and 3) Submit the following: Lastname1.asm Write an assembly program to implement the following. while X > 0 if X != 3 AND (X B) X = X - 2 else X = X - 1 end while Use short-circuit evaluation Assume that A, B, and X are 32-bit signed integers variables Assume that A=5, B=6, and X=11Io Submit the following: Lastname2.asm Write an assembly program to compute the following: y = 3x + 9x - 10 where x and y are 32-bit integer variables x is in the range of (1 =

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!