Skip to content

gshaikov/HackAssembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hack Assembler Project

An artisan C implementation of the Hack Assembler for the nand2tetris course.

A custom hash table was implemented to store symbols and instructions. Also, Go-like error handling is employed, albeit with much less power.

Tutorial

Build

make

The binary file hack_assembler will appear in the root directory.

Use

./hack_assembler <asmfile>

The output binary machine code will be stored in out.hack file in the root.

The example Hack assembly code is provided in add , max , rect , and pong directories.

Test

make test
make test_integration
make test_memory

Tests are implemented with check unit test framework.

About

Assembler for Hack machine language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages