The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ookami on January 16, 2011, 01:22:09 PM

Title: Stack_help
Post by: ookami on January 16, 2011, 01:22:09 PM
Hi !

Can someone give me a code example of the stack use ? (with POP, PUSH, esp, ebp and all this stuff...)
That'll help me a lot.

Thanks.
Title: Re: Stack_help
Post by: dedndave on January 16, 2011, 02:51:53 PM
        push    eax
        pop     edx
Title: Re: Stack_help
Post by: dedndave on January 16, 2011, 03:33:38 PM
i know - that wasn't very helpful   :P

use the forum search tool
i suggest you plug in "EBP" - you should find hundreds of examples
here is an example...

http://www.masm32.com/board/index.php?topic=14381.msg114921#msg114921
Title: Re: Stack_help
Post by: donkey on January 16, 2011, 05:42:51 PM
Some reading for you, with pictures !

http://en.wikibooks.org/wiki/X86_Disassembly/The_Stack
Title: Re: Stack_help
Post by: ookami on January 16, 2011, 09:56:32 PM
Thank you guys, I'll check this out.
Title: Re: Stack_help
Post by: disintx on January 17, 2011, 10:24:49 AM
Another great/short link to check out is from Bill's Win32 Assembly page. It's old, but still relevant.

After googling, the only mirror I can find is on Woodmann's: link (http://www.woodmann.cjb.net/RCE-CD-SITES/Bill%27s%20Win32Asm%20Page/stack1.html)