kriswill / fasm-hello

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flat Assembler "Hello World" example, in x86_64 Linux

A Simple "Hello, World!" example using Flat Assembler.

Setup

I use a Nix Flake to manage the build toolchain, and provide a development shell:

  1. Install the Nix Package Manager the standard way, or using the Determinate Installer.
  2. Configure Nix to use Flakes. (default config if using the Determinate Installer)
  3. Install direnv.
  4. Create a .envrc file to enable the development shell:
echo "use flakes" > .envrc
  1. enable direnv:
direnv allow
  1. Build the project:
nix build
  1. Run the built program, should be on path at ./result/bin/fasm-hello:
fasm-hello

More Examples

You can find more flat assembler examples at their website here.

About


Languages

Language:Nix 66.6%Language:Assembly 33.4%