Buffers in Assembly (NASM)
- From: "bwaichu@xxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: Fri, 18 Jul 2008 19:34:08 -0700 (PDT)
I'm trying to better understand data structures in assembly. I know I
can create a zero filled buffer in the bss section in NASM with this:
buffer: times 64 db 0
And I know I can create a buffer on the stack like this:
sub esp, 64
mov ebx, esp ;save the start point of the buffer
But how do I zero out the buffer on the stack? In C, I would just do
something like:
char buffer[64] = {0};
What's the equivalent in assembly using NASM?
Thanks,
Brian
.
- Follow-Ups:
- Re: Buffers in Assembly (NASM)
- From: Frank Kotler
- Re: Buffers in Assembly (NASM)
- From: ArarghMail807NOSPAM
- Re: Buffers in Assembly (NASM)
- From: Benjamin David Lunt
- Re: Buffers in Assembly (NASM)
- Prev by Date: Troubles with LIB files on Dos-mode
- Next by Date: Re: Buffers in Assembly (NASM)
- Previous by thread: Troubles with LIB files on Dos-mode
- Next by thread: Re: Buffers in Assembly (NASM)
- Index(es):
Relevant Pages
|