From: Geiregat Jonas <kemu@sdf-eu.org>
To: linux-assembly@vger.kernel.org
Subject: question about variables
Date: Thu, 15 May 2003 16:50:12 +0000 [thread overview]
Message-ID: <3EC3C544.8050307@sdf-eu.org> (raw)
Hey, I have 2question about linux assembly
I have written a basic programme
It's really simple I use the open, read and write syscall
To open a file (/etc/passwd) read it and print it out to the screen.
Now when reading the file I read it into a buffer declared like this
(using nasm)
section .bss
buffer resd 1
so I reserve one double word of space. so that is 4bytes. /etc/passwd is
much bigger then that but still I see the whole file printed I find this
strange (I'm also not sure about the 1 behind resd I think it's stands
for reserve 1 doubleword of space)
My other question is how can I accept, command line arguments in asm
using nasm
Regards Jonas
next reply other threads:[~2003-05-15 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 16:50 Geiregat Jonas [this message]
2003-05-15 16:30 ` question about variables wintah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EC3C544.8050307@sdf-eu.org \
--to=kemu@sdf-eu.org \
--cc=linux-assembly@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.