Question: i'll make sure to give a thumbs up! Objective: Learn memory organization/layout, data transfer concepts and instructions, direct memory access, memory allocation. Requirements: 1. (4

i'll make sure to give a thumbs up! i'll make sure to give a thumbs up! Objective: Learn memory organization/layout,

Objective: Learn memory organization/layout, data transfer concepts and instructions, direct memory access, memory allocation. Requirements: 1. (4 points) Implement the following expression in assembly language: - Assume that result, val1, val2, val3 and val. 4 are 16-bit integer variables - You need to implement the expression the way it is provided, you cannot do any reduction on the expression while implementing it. - Initialize val1 with 134 (hexadecimal), val2 with 139 (hexadecimal), val3 with 67 (hexadecimal) and va 14 with 47 (hexadecimal) - You are NOT allowed to update the values of any variables. - Use ONLY mov, add, sub, movzx, movsx, or neg instructions whenever needed. - Use the debugger to verify your answer. Submit the following: - Save your source code using your last name, Lastname1. asm and upload the Lastnamel. asm - Screenshot (showing the code and register window) of EDX register contains the correct result. 2. (4 points) Implement the following expression in assembly language: - Assume that val1 is 16-bit variable, val2 is 32-bit variable, val3 is 8-bit variable, and val 14 is 8 -bit variable. - You need to implement the expression the way it is provided, you cannot do any reduction on the expression while implementing it. - Initialize vall with 12 (decimal), va 12 with 9 (decimal), va 13 with 2 (decimal), val 4 with 20 (decimal), - You are NOT allowed to update the values stored in val1, val2, val3 and val4 - Use mov, add, sub, movsx, movzx, or neg instructions whenever needed. - Use the debu ger to verify your answer. Submit the following: - Save your source code using your last name, Lastname2. asm and upload the Lastname2. asm - Screenshot (showing the code and register window) of ECX register contains the correct result

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!