hack-assembler
v2.0.1
Published
a hack assembler
Downloads
18
Maintainers
Readme
hack-assembler
A javascript assembler for the hack language.
Install CLI
sudo npm install -g hack-assembler
Usage CLI
hack-asm ./program.asm > program.hack
Usage as lib
npm install --save hack-assembler
Code example as lib
var assembler = require('hack-assembler')
// code => string of assemble code
// Comments will be removed
var codeObj = new assembler(code)
// Get assembled code (machine code) as string
var machineCode = codeObj.getAssembledCode()
License
MIT © Dennis Iversen