Suppose we want to write "Hello World" to the screen using assembly language.
- We will use the write() syscall to print the “Hello World”
- System call for write is #define __NR_write 4
- We need to store 4 into EAX register
- We would need to store the file descriptor (FD) which is STDOUT =1
- Remember in Linux FD STDIN = 0, FD STDERR = 2