Article 58C4C Translate NASM program into GNU Assembler one

Translate NASM program into GNU Assembler one

by
Sunless
from LinuxQuestions.org on (#58C4C)
Hi all!
There are some code in C and Assembly here https://montcs.bloomu.edu/Informatio...asm-stack.html See examples add2.asm in NASM.
I didn't understand square brackets operation. How to translate Quote:
mov eax, [ ebp + 8 ]
into GNU Assembler call? What does 8 mean in square brackets? I assume that sizeof(int) has 4 value. Thank you.latest?d=yIl2AUoC8zA latest?i=9y-56I3mQBM:3j2u1F7qFkA:F7zBnMy latest?i=9y-56I3mQBM:3j2u1F7qFkA:V_sGLiP latest?d=qj6IDK7rITs latest?i=9y-56I3mQBM:3j2u1F7qFkA:gIN9vFw9y-56I3mQBM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments