title: nasm system calls Linux
body: <p>I have got a question about linux x86 system calls in assembly.</p>
  
  <p>When I am creating a new assembly program with nasm on linux, I'd like to know which system calls I have to use for doing a specific task (for example reading a file, writing output, or simple exiting...). I know some syscall because I've read them on some examples taken around internet (such as eax=0, ebx=1 int 0x80 exit with return value of 1), but nothing more... How could I know if there are other arguments for exit syscall? Or for another syscall? I'm looking for a docs that explain which syscalls have which arguments to pass in which registers.</p>
  
  <p>I've read the man page about exit function etc. but it didn't explain to me what I'm asking.</p>
  
  <p>Hope I was clear enough,</p>
  
  <p>Thank you!</p>