/ruby-hack-assembler

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

Primary LanguageRuby

🔨 Hack Assembler in Ruby

A Hack Assembler written in Ruby following Chapter 6: Assembler of The Elements of Computing Systems

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