This commit is contained in:
hexplor
2026-05-11 16:41:13 +02:00
parent b030981073
commit 8c3f9f7940
3 changed files with 37 additions and 0 deletions
BIN
View File
Binary file not shown.
+17
View File
@@ -0,0 +1,17 @@
BITS 64;
global main
extern printf
section .data
src db "La source a venir"
section .text
main:
call affiche_source
affiche_source:
lea rdi, [src] ; 1er argument: format
;lea rsi, [name] ; 2e argument: %s
call printf
+20
View File
@@ -0,0 +1,20 @@
.PHONY: all clean fclean re test
all: Colleen
Colleen: Colleen.o
cc -g3 -no-pie -o Colleen Colleen.o
Colleen.o: Colleen.s
nasm -f elf64 -g Colleen.s -o Colleen.o
clean:
rm -f Colleen.o
fclean: clean
rm -f Colleen
re: fclean all
test:
./Colleen > tmp_Colleen ; diff tmp_Colleen Colleen.s