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:
into GNU Assembler call? What does 8 mean in square brackets? I assume that sizeof(int) has 4 value. Thank you.


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 ] |