Skip to content

An implementation of the Hack Assembler using ANSI Common Lisp.

Notifications You must be signed in to change notification settings

kjnez/The-Hack-Assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Hack Assembler

This is a project to translate assembly code to machine code in the Hack system. It follows the contract described in The Elements of Computing Systems.

Dependencies

The project is implemented using Common Lisp (SBCL). The only external package I used is uiop, you can install it through quicklisp:

(ql:quickload :uiop)

Usage

You can use it by providing assembly source file and the output file as follows:

(assembler:from-assembly-to-binary "test/Rect.asm" "Rect.hack")

Note

The assembly source files in test folder are borrowed from nand2tetris website. You can test the translation accuracy by using the provided assembler on that website.

License

MIT

About

An implementation of the Hack Assembler using ANSI Common Lisp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published