The latter
POP EBP
is equivalent to
MOV EBP, [ESP]
ADD ESP, 4 ; but without modifying flags, like LEA ESP, [ESP+4]
(in Intel syntax – target on the left, source on the right)
More Related Contents:
- What is the function of the push / pop instructions used on registers in x86 assembly?
- What is an assembly-level representation of pushl/popl %esp?
- Does it matter where the ret instruction is called in a procedure in x86 assembly
- Why is GCC pushing an extra return address on the stack?
- How do I print an integer in Assembly Level Programming without printf from the c library?
- Test whether a register is zero with CMP reg,0 vs OR reg,reg?
- How do AX, AH, AL map onto EAX?
- Basic use of immediates vs. square brackets in YASM/NASM x86 assembly
- What does `rep ret` mean?
- Why is there not a register that contains the higher bytes of EAX?
- How to make the kernel for my bootloader?
- Assembly (x86): db ‘string’,0 does not get executed unless there’s a jump instruction
- about assembly CF(Carry) and OF(Overflow) flag
- Assembly Language – How to do Modulo?
- What does NOPL do in x86 system?
- Does cmpxchg write destination cache line on failure? If not, is it better than xchg for spinlock?
- What is the point of SSE2 instructions such as orpd?
- What’s the purpose of the rotate instructions (ROL, RCL on x86)?
- Why isn’t the instruction pointer a normal register usable with MOV or ADD?
- How to tell the length of an x86 instruction?
- Optimize for fast multiplication but slow addition: FMA and doubledouble
- How to force NASM to encode [1 + rax*2] as disp32 + index*2 instead of disp8 + base + index?
- In what situation would the AVX2 gather instructions be faster than individually loading the data?
- x86 32 bit opcodes that differ in x86-x64 or entirely removed
- Purpose of ESI & EDI registers?
- MUL function in assembly
- Assembly x86 registers signed or unsigned
- How does the CPU know how many bytes it should read for the next instruction, considering instructions have different lengths?
- How many ways to set a register to zero?
- How to check the EIP value with assembly language? [duplicate]