Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Assembly : pop

  • 21-04-2002 05:06PM
    #1
    Closed Accounts Posts: 1,719 ✭✭✭


    ok iam starting assembly(dont ask ok?)
    and i'm trying to figure out the pop instruction.it is supposed to "save" a register.to where?how does it save a register?does it only save one value per register and allows you re re-instate the value later(push register)?


Comments

  • Registered Users, Registered Users 2 Posts: 2,199 ✭✭✭Keeks


    I take it is the x86 intrustion set you are using.

    From what i can remeber (which ain't a lot a times), the POP instructions takes the top value off the stack.

    i think the sytax is

    POP desc where desc is the memory location you wan the value to be placed in memory.

    I am assuming you know what a stack is? If not let me know and I'll try and dig out some notes somewhere to explain it better than i could now.


    btw....i never did ant x86 assembly programming so i may be wrong, but it is close enough.


  • Registered Users, Registered Users 2 Posts: 2,199 ✭✭✭Keeks


    Found a quick example of PUSH and POP with the STACK here. It might help you out.


  • Closed Accounts Posts: 1,719 ✭✭✭Ruaidhri


    thanks..i'm in the same boat as stephen anyway..


Advertisement