Question: I have a quick question about assembly programming, registers and mov instruction. Say I have instruction: mov eax, 2 move eax, 3 The value of

I have a quick question about assembly programming, registers and mov instruction. Say I have instruction:

mov eax, 2 move eax, 3

The value of 2 will be transferred into mov, but in the next instruction 3 is transferred over, so does that mean it gets added or will the value just update to 3?

Another example:

Lets just say x = 1

mov eax, x mov temp, eax mov eax, x

So here x goes into eax, then eax (now 1) goes into temp, then x (which is still 1) goes to eax, is eax empty in the last last line or is it 1 since x was transferred over in the first line and does it get added with the x value or just updated??

I'm confused please help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!