Skip to content

hazemKrimi/hack-assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hack Assembler

This is an assembler made as the final assignment for the Nand To Tetris Course: Part 1. It assumes that the assembly file does not have errors for now.

Requirements

You need the Rust programming language to develop, build and run this project. You can install its toolchain through Rustup

Installation

  1. Clone this repo:
git clone https://github.com/hazemKrimi/hack-assembler
  1. To run this against hack assembly files run the following command with the path of the asm file:
cargo run <path>

The result hack file will be written next to the source file.

Build

  • To build this project run the following command:
cargo build
  • To build for release run the following command:
cargo build --release

You will find the executable in the target directory under debug or release depending on the command you chose to run from the above.

Reference

This project is based on the Nand To Tetris Course: Part 1.

About

Assembler for The Hack language from the Nand to Tetris course.

Topics

Resources

License

Stars

Watchers

Forks

Languages