/hack-vm-translator

A VM translator for the HACK computer.

Primary LanguageTypeScriptMIT LicenseMIT

hack-vm-translator

A VM translator for the HACK computer.

About

This project covers the assignments in first and second chapters of the course Build a Modern Computer from First Principles: Nand to Tetris Part II. You can learn more about the assignments and what they set out to do here and here

Getting Started

Prerequisites

Installation

  1. Clone the repo

    git clone https://github.com/MlkMahmud/hack-vm-translator.git
  2. Install dependencies

    cd hack-vm-translator/
    npm install

Usage

  npm run translate [ src.vm ] or [ src/ ]

Note: to translate a directory, the directory must contain at least, a Sys.vm file.