Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/wildmaples/ruby-hack-assembler
- Owner: wildmaples
- Created: 2021-06-15T02:43:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-16T13:33:42.000Z (over 3 years ago)
- Last Synced: 2023-04-18T04:47:38.111Z (over 1 year ago)
- Topics: assembler, hackassembler, nand2tetris, nand2tetris-assembler, ruby
- Language: Ruby
- Homepage:
- Size: 37.1 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```