Re: 'defines.h' file not found
Paul Irofti <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
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.