/hack-assembler

Assembler for Hack Computer, implementd in Rust. It generates sudo binary from (.asm) files.

Primary LanguageAssembly

Hack Assembler

Assembler for Hack Computer, implementd in Rust. It generates sudo binary from (.asm) files.

Built to assemble hack assembly language from the Nand to Tetris course.

It assembles hach symbolic (.asm) language into hack binary code.

Usage

  1. Clone the repo
  2. Change mode of hack binary to executable
sudo chmod +x hack

  1. Have test .asm file current working directory

  2. Run hack program

./hack {filename}.asm

  1. It will produce an 'out.hack' file and print source code to terminal