Question: 1. Write an assembly program that is equivalent to the following C++ statements. Show the output by calling DumpReg. (10 marks) C++ int Y; int
1. Write an assembly program that is equivalent to the following C++ statements. Show the output by calling DumpReg. (10 marks) C++ int Y; int X = (Y + 4) * 3;
I have attached format of assembly language please use it, thank you.
TITLE
; Name: ; Date: ; ID: ; Description:
INCLUDE Irvine32.inc INCLUDELIB Irvine32.lib
.data
; data declarations go here
.code main PROC
; program syntax here
call DumpRegs ; displays registers in console
exit
main ENDP END main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
