Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.01 KB

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 flake" > .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.