Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wildmaples/ruby-hack-assembler

A Hack assembler written in Ruby 🔨 (Chapter 6, The Elements of Computing Systems)
https://github.com/wildmaples/ruby-hack-assembler

assembler hackassembler nand2tetris nand2tetris-assembler ruby

Last synced: about 1 month ago
JSON representation

A Hack assembler written in Ruby 🔨 (Chapter 6, The Elements of Computing Systems)

Awesome Lists containing this project

README

        

# 🔨 Hack Assembler in Ruby

A Hack Assembler written in Ruby following [Chapter 6: Assembler](https://b1391bd6-da3d-477d-8c01-38cdf774495a.filesusr.com/ugd/44046b_89a8e226476741a3b7c5204575b8a0b2.pdf) of [The Elements of Computing Systems](https://www.nand2tetris.org/)

# Modules

This assembler consists of three modules:

- Parser: Parses the assembly code
- Code: Translates the parsed code into machine language
- Symbol Table: Handles symbols and labels

# Usage

Run the example file:

```
bin/assembler examples/Add.asm
```