From 1429bda0b811617c32b9361a1f715b5c8bcf8f47 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sun, 8 Nov 2026 10:35:23 +0100 Subject: [PATCH] added ressources --- README.md | 29 ++++++++++++++++++++++++++++- libasm.a | 0 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 libasm.a diff --git a/README.md b/README.md index 1d260aa..1b2c6ac 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,32 @@ # libasm +- public link : https://gitea.hugulumu.com/42/42_EXT_02_libasm +- `apt install nasm build-essential` + ## ressources -- projet de luke : https://github.com/LuckyLaszlo/libasm \ No newline at end of file +- luke's project : https://github.com/LuckyLaszlo/libasm +- nasm doc : https://www.nasm.us/doc/ +- intro : + - https://www.linuxdoc.org/HOWTO/Assembly-HOWTO.html + - https://linuxjunkies.org/guides/assembly-language-on-linux + - https://github.com/LilSuperUser/x86_64-asm-tutorials/blob/main/README.md + - https://github.com/luamfb/intro_x86-64 + - https://cs.lmu.edu/~ray/notes/nasmtutorial/ +- global training for security : https://opensecuritytraining.info/Training.html / https://ost2.fyi/ + +## instructions + +- [ ] You must write 64-bit assembly. Beware of the "calling convention". +- [ ] You can’t do inline ASM, you must do ’.s’ files. +- [ ] You must compile your assembly code with nasm. +- [ ] You must use the Intel syntax, not the AT&T syntax. +- [ ] You must submit a main function that will test your functions and compile with your library to demonstrate that it is functional. +- [ ] You must check for errors during syscalls and handle them properly when needed. +- [ ] Your code must set the variable errno properly (you are allowed to call the extern \_\_\_error or errno_location). +- [ ] ft_strlen (man 3 strlen) +- [ ] ft_strcpy (man 3 strcpy) +- [ ] ft_strcmp (man 3 strcmp) +- [ ] ft_write (man 2 write) +- [ ] ft_read (man 2 read) +- [ ] ft_strdup (man 3 strdup, you can call to malloc) diff --git a/libasm.a b/libasm.a new file mode 100644 index 0000000..e69de29