Re: Buffers in Assembly (NASM)
- From: NoSpam@xxxxxxxxxxx (Bob Masta)
- Date: Sat, 19 Jul 2008 11:53:43 GMT
On Sat, 19 Jul 2008 02:18:33 -0500, ArarghMail807NOSPAM
<spamtrap@xxxxxxxxxx> wrote:
On Fri, 18 Jul 2008 19:34:08 -0700 (PDT), "bwaichu@xxxxxxxxx"
<spamtrap@xxxxxxxxxx> wrote:
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:
The bss section is by definition not initialized by the program, so
you have to clear it yourself.
Not familiar with NASM or its linker, but with MASM32 and the standard
PE linker the BSS section (called .data? in MASM) is automatically
zeroed. In this section you can not specify a fill value, you must
use ? or MASM reports an error, but when the app runs that section is
always filled with zeros.
Best regards,
Bob Masta
DAQARTA v4.00
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Sound Level Meter
FREE Signal Generator
Science with your sound card!
.
- Follow-Ups:
- Re: Buffers in Assembly (NASM)
- From: ArarghMail807NOSPAM
- Re: Buffers in Assembly (NASM)
- From: ArarghMail807NOSPAM
- Re: Buffers in Assembly (NASM)
- References:
- Buffers in Assembly (NASM)
- From: bwaichu@xxxxxxxxx
- Re: Buffers in Assembly (NASM)
- From: ArarghMail807NOSPAM
- Buffers in Assembly (NASM)
- Prev by Date: Re: HLA for newbie?
- Next by Date: Re: Buffers in Assembly (NASM)
- Previous by thread: Re: Buffers in Assembly (NASM)
- Next by thread: Re: Buffers in Assembly (NASM)
- Index(es):
Relevant Pages
|