Implement in masm x86 assembly and show screen shots Implement the following expression in assembly language: result = (val3 + val4) - (val1 – val2) – (30*4)/55 - Assume that result,val1, val2, val3 and val4 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 val4 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
Implement in masm x86 assembly and show screen shots
Implement the following expression in assembly language:
result = (val3 + val4) - (val1 – val2) – (30*4)/55
- Assume that result,val1, val2, val3 and val4 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 val4 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
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images