Skip to content

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.

Notifications You must be signed in to change notification settings

Ximaz/nasm-stdlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NASM stdlib

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.

Compilation

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.

Resources

kupala : x86_64 Linux Assembly (Tutorials playlist)

Issues

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published