[Assignment-5] setup task 3 (syscalling)

This commit is contained in:
Sascha Tommasone 2024-06-08 18:09:03 +02:00
parent 8afa5409e6
commit e8894d34d1
Signed by: saschato
GPG key ID: 751068A86FCAA217
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,3 @@
all:
rm -f antwort
nasm -felf32 code.asm -o antwort.o && ld -m elf_i386 antwort.o -o antwort

View file

@ -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 ------------