In Assembly, using the following template:INCLUDE irvine32.inc.386.model flat,stdcall.stack 4096ExitProcess PROTO, dwExitCode:DWORD.DATA; declare variables here.CODEmain PROC; write your code here
call DumpRegsINVOKE ExitProcess,0main ENDPEND main
Write a procedure calledadd3, which takes three parameters from the stack and returns the sum, leaving it in theEAX registers.
Also, you will need to write a main program, which pushes the three parameters on the stack, finds the sum in theEAX register and prints the value.
At the end of your program, output a message box that displays the text “Success!”
CODE MUST COMPILE!If code does not compile, thumbs down. Don't bother posting non-working code.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here