1. Implement the following expression in assembly language: AX = (val3 + 7) - (var2 + val1) + (5/3)*7 - Assume that val1, val2, and val3 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 12 (decimal), val2 with 9 (decimal), and val3 with 2 (decimal) - You are ONLY allowed to use 16-bit registers. - Use ONLY mov, add, sub instructions whenever needed. - Use the debugger to verify your answer. o Submit the following: § Save your source code using your last name, Warner1.asm and upload the Warner1.asm § Screenshot (showing the code and register window) of AX register contains the correct result.
1. Implement the following expression in assembly language:
AX = (val3 + 7) - (var2 + val1) + (5/3)*7
- Assume that val1, val2, and val3 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 12 (decimal), val2 with 9 (decimal), and val3 with 2 (decimal)
- You are ONLY allowed to use 16-bit registers.
- Use ONLY mov, add, sub instructions whenever needed.
- Use the debugger to verify your answer.
o Submit the following:
§ Save your source code using your last name, Warner1.asm and upload the
Warner1.asm
§ Screenshot (showing the code and register window) of AX register contains the correct result.

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









