Assignment-5 #2

Merged
saschato merged 18 commits from Assignment-5 into master 2024-06-10 14:32:32 +02:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit e8894d34d1 - Show all commits

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