Question: Assembly Memory Segment Layout (Little Endian) - What does the add instruction do? For example, on the first add instruction (add eax, 3), it moves

Assembly Memory Segment Layout (Little Endian) - What does the "add" instruction do?

For example, on the first add instruction (add eax, 3), it moves the pointer for eax 3 spots to the right.

Thus, EAX = 12, 17, A3, 00. (This I understand)

But, on the second add instruction (add ebx, 5), it actually adds the value 5 to ebx, making EBX = 12, 17, A3, 05.

Why is that?

Assembly Memory Segment Layout (Little Endian) - What does the "add" instruction

ANSWER:

do? For example, on the first add instruction (add eax, 3), it

varl var2 var3 dd 179 db 0A3h, 017h 012h bca var1 eax. mov add eax, mov ebx r [eax] add ebx 5 mov [varlj ebx B3 00 00 00 A3 17 12 62 63 61 var1 Va Va (4) (3) (3)

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!