This repository is for learning purposes only ! It's just a project that aims to make me discover the assembly language's world by doing my own stdlib, which might be the greatest thing to do when you're trying to learn a programming language. It's obviously not a secured library. I'm doing it for myself, and sharing it to you to get some help if needed, and some contribution to make me learn new things.
If you also want to discover this world, then you can try to do the same at home and inspire you from/copy this repository.
You need to have NASM installed into your machine, because it's the tool I'm going to use to compile my assembly files. You also need to have make installed, because it's the tool I'm going to use to compile and link everything. Once done, you can clone this repository and type make re
in a prompt to compile and remove temp files. A binary should still be visible, main
. You can launch it. It must acts like the main.asm
program descibes it's behaviour.
kupala : x86_64 Linux Assembly (Tutorials playlist)
Workaround :
# /etc/wsl.conf
[automount]
options = "metadata"
Workaround :
I didn't notice that the stdin call returned the read bytes into rax, which is what I need to put a termination byte.
Since the string contains the \n, I had to decrement it before puting the null byte at the \n position.