NASM Hello World Gists on Github

Github has a feature called Gists which allow people to share short programs more conveniently than having an entire repository for them. Although of course these are part of my Chastity’s Code Cookbook repository, I like having these conveniently linked so that people who want a taste of Assembly programming can use my example code to get started with NASM.

NASM 32-bit ELF Hello World with no linker
https://gist.github.com/chastitywhiterose/4e429fd82f962907d1581307ed4e0ab7

NASM 64-bit ELF Hello World with no linker
https://gist.github.com/chastitywhiterose/b5acd7992fc8463a662ca4f86fff4a5e

Obviously FASM can generate the ELF header without my math but I had to learn how the format works to get these working and also so I don’t depend on only one assembler. In my next book, I plan to cover using either FASM or NASM for Assembly language programming in Linux.

Comments

Leave a comment