Can I POP a value from the stack, but put it nowhere in NASM Assembly?

后端 未结 2 1302
太阳男子
太阳男子 2021-01-06 00:33

NASM Assembly, Ubuntu, 32-bit program.

Normally, when popping a value from the stack, I\'ll do

POP somewhere

Into a register or a v

2条回答
  •  礼貌的吻别
    2021-01-06 01:02

    Adjust the stack pointer by four bytes (or some other amount), ignoring whatever value was on top:

    add esp, 4
    

提交回复
热议问题