[Assignment-5] setup task 3 (syscalling)
This commit is contained in:
parent
8afa5409e6
commit
e8894d34d1
2 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
all:
|
||||
rm -f antwort
|
||||
nasm -felf32 code.asm -o antwort.o && ld -m elf_i386 antwort.o -o antwort
|
|
@ -0,0 +1,19 @@
|
|||
; define some macros
|
||||
%define O_RDONLY 00000000o
|
||||
%define O_WRONLY 00000001o
|
||||
%define O_RDWR 00000002o
|
||||
%define O_CREAT 00000100o
|
||||
%define O_TRUNC 00001000o
|
||||
%define S_IRUSR 00000400o
|
||||
%define S_IWUSR 00000200o
|
||||
|
||||
section .data
|
||||
path: db "/home/user/nachricht", 0
|
||||
greeting: db "hidad!", 0
|
||||
|
||||
section .text
|
||||
global _start
|
||||
_start:
|
||||
;----------------------------------
|
||||
nop ; <YOUR CODE HERE>
|
||||
; ------------ End of file ------------
|
Loading…
Reference in a new issue