Project

hackasm

0.0
No commit activity in last 3 years
No release in over 3 years
Assembler and vm code translator program for Hack assembler from course From NAND to Tetris.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
~> 0.12
~> 12.3
~> 3.0

Runtime

~> 0.7.2
~> 0.20.0
~> 0.4.1
~> 0.5
~> 0.9.0
~> 0.3.2
~> 0.8.0
~> 0.4.0
~> 0.2.0
~> 0.6.0
~> 0.12
~> 0.3.0
~> 0.19
~> 0.11.0
~> 0.3
~> 0.4
 Project Readme

Hackasm

A Ruby-based compiler for the Hack platform developed in the scope of the NAND to Tetris course(parts 1 and 2.

Installation

Add this line to your application's Gemfile:

gem 'hackasm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hackasm

Usage

This tool is a translator that is aimed to translate code from the higher level programming language in the stack of Hack platform to the lower one.

new command

Translate *.asm file of assembler commands to *.hack file of binary commands. This command matches the project 7 and 9 of NAND to Tetris.

asm2binarycommand

Translate *.vm file with virtual machine code or a folder of *.vm files to the single *.asm file of assembler commands. This command matches the project 6 of NAND to Tetris.

Code of Conduct

Everyone interacting in the Hackasm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Copyright

Copyright (c) 2020 Artur Martsinkovskyi. See MIT License for further details.