Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Converting 32 bit to 64 bit Assembly program. I need to convert the following 32 bit program into 64 bit. Here is the 32 bit

Converting 32 bit to 64 bit Assembly program.

I need to convert the following 32 bit program into 64 bit.

Here is the 32 bit version provided by the book.

image text in transcribed

Here is my 64 bit version that I worked on.

I know the Include irvine32.inc probably shouldn't be there but when I removed that line, I still get other errors.

image text in transcribed

But I get the following errors:

image text in transcribed

What am I doing incorrectly? Thank you for your help.

AddVars64.asm AddVariablesasm ; AddVariables.asm - Chapter 3 Example 2 3 INCLUDE Irvine32.inc ; Had to add 4 386 5 .model flat, stdcall 6 .stack 4096 7 ExitProcess PROTO, dwExitCode DWORD 8 9.data 10 firstval DWORD 20002000h 11 secondval 12 thirdval DWORD 22222222h 13 sum DWORD 0 14 15 code 16 main PROC 17 18 19 20 21 mov eax, firstval add eax, secondval add eax, thirdval mov sum, eax call DumpRegs call WaitMsg ; Had to add ; Had to add 23 24 25 INVOKE ExitProcess, 0 main ENDP 26 END main 90 %

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions