Question: 1. (7 points) Implement the following expression in assembly language: BX--val1 + 20 - (val2 + val3) Assume that vall, val2, and val3 are 8-bit

1. (7 points) Implement the following expression in assembly language: BX--val1 + 20 - (val2 + val3) Assume that vall, val2, and val3 are 8-bit integer variables Initialize vall with 5, val2 with 8, and val3 with-4 - You are only allowed to use 16-bit registers to hold intermediate results, whenever needed Use movzx, movsx or neg instructions whenever needed. Use the debugger to verify your answer. o Submit the following: - Lastnamel.asm 1. (7 points) Implement the following expression in assembly language: BX--val1 + 20 - (val2 + val3) Assume that vall, val2, and val3 are 8-bit integer variables Initialize vall with 5, val2 with 8, and val3 with-4 - You are only allowed to use 16-bit registers to hold intermediate results, whenever needed Use movzx, movsx or neg instructions whenever needed. Use the debugger to verify your answer. o Submit the following: - Lastnamel.asm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
