Question: Hello please help with the following program (Computer Assembly) Modify the AddVariables program so it uses 64-bit variables. Describe the syntax errors generated by the

Hello please help with the following program (Computer Assembly)

Modify the AddVariables program so it uses 64-bit variables. Describe the syntax errors generated by the assembler and what steps you took to resolve the errors. using a 64 bit program using Visual Studio. Use all 64-bit registers. Submit a source file (.asm) and an executable file (.exe) Or screenshot of output.

ADDVARIABLES PROGRAM:

1: ; AddVariables.asm - Chapter 3 example 2: 3: .386 4: .model flat,stdcall 5: .stack 4096 6: ExitProcess PROTO, dwExitCode:DWORD 7: 8: .data 9: firstval DWORD 20002000h 10: secondval DWORD 11111111h

11: thirdval DWORD 22222222h

12: sum DWORD 0 13: 14: .code 15: main PROC 16: mov eax,firstval 17: add eax,secondval 18: add eax,thirdval 19: mov sum,eax 20: 21: INVOKE ExitProcess,0 22: main ENDP 23: END main

THANK YOU.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To modify your assembly program to use 64bit variables and registers you need to make changes to the code to cater to a 64bit architecture Heres a ste... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!