Skip to content

assembler for hack machine language that is used in nand2tetris course part 1 on coursera.

Notifications You must be signed in to change notification settings

abdrd/hack-assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hack machine language assembler

This is an assembler implemented in Go, for the assembly language used in Nand2Tetris course part 1.

You can read more about the language here: Github | aalhour/Assembler.hack

How to run

You need go version 1.16+, to compile and run this program.

To install Go on Debian based distros (e.g. Ubuntu/Pardus):

sudo apt install golang-go

If you want to download Go binaries for MacOS, Linux, or Windows, visit Official Go Website

git clone https://github.com/betelgeuse-7/hack-assembler
cd hack-assembler

If you want an executable:

go build -o assembler .

To run that executable:

./assembler <file.asm>

If you just want to run the program:

go run . <file.asm>

<file.asm> is an assembly file containing error-free Hack assembly language instructions.

The program will create a file.hack file containing 16-bit Hack CPU instructions, right next to where file.asm is located on the file system.

About

assembler for hack machine language that is used in nand2tetris course part 1 on coursera.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published