Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
/ n2t-asm Public archive

Toy assembler written in Go, while working through https://www.nand2tetris.org/

Notifications You must be signed in to change notification settings

jeffgreenca/n2t-asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go

n2t-asm

An assembler for nand2tetris, written in Go.

usage

$ ./scripts/build.sh
$ ./n2t-asm program.asm > program.hack
# or, via stdin
$ cat program.asm | ./n2t-asm > program.hack

testing and building

$ go test ./...
$ ./scripts/build.sh

validation

If you have nand2tetris software installed locally, this script will assmeble the corpus of .asm files from nand2tetris using both this assembler and the nand2tetris provided assembler, diffing the results.

$ export N2T_PATH=/path/to/your/nand2tetris
$ ./scripts/build.sh && ./scripts/compare.sh

About

Toy assembler written in Go, while working through https://www.nand2tetris.org/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published