Assembly question
Take the example AddTwoSum.asm and modify it to calculate thefollowing expression using registers: (A + B) – (C + D). First movea different number into each of the 4 general purpose 32 bitregisters EAX, EBX, ECX, EDX. Then use the expression and put theresult into EAX. Lastly, display all of the registers using “CallDumpRegs”.
1: ; AddTwoSum.asm – Chapter 3 example
2:
3: .386
4: .model flat,stdcall
5: .stack 4096
6: ExitProcess PROTO, dwExitCode:DWORD
7:
8: .data
9: sum DWORD 0
10:
11: .code
12: main PROC
13: mov eax,5
14: add eax,6
15: mov sum,eax
16:
17: INVOKE ExitProcess,0
18: main ENDP
19: END main
Expert Answer
An answer will be send to you shortly. .
PayPal Gateway not configured
PayPal Gateway not configured