0 votes
in General Knowledge by (744k points)
What does popw %ax? pushw %ax do?

1 Answer

0 votes
by (744k points)
 
Best answer
Copy 2 bytes from the address at %rsp. Add two bytes to %rsp.

Subtract 2 bytes from %rsp. Copy the value of %ax to the address pointed to by %rsp. Now, %ax is on top of the stack.

We will only have to worry about pushing/popping 8 byte values from the stack.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.

No related questions found

...