linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'defines.h' file not found
@ 2005-06-21 18:36 Paul Irofti
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Irofti @ 2005-06-21 18:36 UTC (permalink / raw)
  To: linux-assembly

i have a question, i just moved to AT&T syntax and linux assembly 
programming. getting up-to-date with the new syntax and kernel syscalls 
was easy

now i found on a few tutorials, meant to make your way easier on the 
transition from intel and win assembly to AT&T and *nix assembly, 
reffrences to a defines.h file that had the most numbers for output 
souces and such already defined and passed along to a more human kind of 
abordation (i.e. $1 gets to be #STDOUT).

my question is if there are this sort of headers standardized and 
commonly used in the *nix asm world, or every coder makes his own.

searching google i found thousands of program samples that included the 
file but no reffrence was made to it, as though it was a naturaly found 
header file on every comp.

any comments on this will be very well apreciated...thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: 'defines.h' file not found
@ 2005-06-22  0:04 Paul Irofti
  2005-06-22  0:09 ` Paul Irofti
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Irofti @ 2005-06-22  0:04 UTC (permalink / raw)
  To: linux-assembly

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-22  1:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 18:36 'defines.h' file not found Paul Irofti
  -- strict thread matches above, loose matches on Subject: below --
2005-06-22  0:04 Paul Irofti
2005-06-22  0:09 ` Paul Irofti
     [not found]   ` <d03fdece5c2376836cd3ab3fed1b85ac@sonoma.edu>
2005-06-22  1:54     ` Paul Irofti

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).