From: Paul Irofti <bulibuta@gmail.com>
To: linux-assembly@vger.kernel.org
Subject: Re: 'defines.h' file not found
Date: Wed, 22 Jun 2005 00:09:43 +0000 [thread overview]
Message-ID: <42B8AC47.8010804@gmail.com> (raw)
In-Reply-To: <42B8AB1B.5030408@gmail.com>
Paul Irofti wrote:
> ofcourse, i need a header that has define directives as:
>
>
> ;output control
> %define NL 10
> %define STDIN 0
> %define STDOUT 1
> ...
> ;syscalls
> %define SYS_EXIT 1
> %define SYS_READ 3
> %define SYS_WRITE 4
> %define SYS_IOCTL 54
>
> ....
>
> and a sample code that can be found at www.linuxassembly.org is:
>
> .include "defines.h"
> .data
> hello:
> .string "hello world\n"
>
> .globl main
> main:
> movl $SYS_write,%eax
> movl $STDOUT,%ebx
> movl $hello,%ecx
> movl $12,%edx
> int $0x80
>
> ret
>
>
> that's about it, i need this for an easier code writting. i can use
> interrupts and numbers but a 'defines.h' would be nicer.
> thanks.
>
oh yeah, and the header snapshot that i gave is written in NASM syntax
which is Intel syntax similar. i need an AT&T syntax one...
next prev parent reply other threads:[~2005-06-22 0:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-22 0:04 'defines.h' file not found Paul Irofti
2005-06-22 0:09 ` Paul Irofti [this message]
[not found] ` <d03fdece5c2376836cd3ab3fed1b85ac@sonoma.edu>
2005-06-22 1:54 ` Paul Irofti
-- strict thread matches above, loose matches on Subject: below --
2005-06-21 18:36 Paul Irofti
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=42B8AC47.8010804@gmail.com \
--to=bulibuta@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).