84.3k views
2 votes
What will be the value of EAX when the following sequence of instructions has executed?

a. push 5.b. push 10.c. push 20.d. pop eax.

1 Answer

6 votes

Answer:

20

Step-by-step explanation:

The value of EAX would be 20. This is a 32 bit version of AX register. It has two common purposes.

1. It is useful for storing the return value of a function

2. It is used as register while performing some kinds of calculations.

The value is not preserved. It is therefore volatile in nature as a register.

User Iscream
by
5.0k points