hack-assembler-js
所属分类:collect
开发工具:Hack
文件大小:0KB
下载次数:0
上传日期:2023-02-27 18:31:34
上 传 者:
sh-1993
说明: 用javascript编写的黑客汇编程序,
(A hack assembler written in javascript,)
文件列表:
cli.js (369, 2019-11-09)
constants.js (1469, 2019-11-09)
index.js (3870, 2019-11-09)
package-lock.json (2308, 2019-11-09)
package.json (765, 2019-11-09)
test/ (0, 2019-11-09)
test/.txt (0, 2019-11-09)
test/Add.asm (255, 2019-11-09)
test/Add.hack (102, 2019-11-09)
test/Max.asm (776, 2019-11-09)
test/Max.hack (272, 2019-11-09)
test/Pong.asm (199789, 2019-11-09)
test/Pong.hack (467211, 2019-11-09)
test/Rect.asm (592, 2019-11-09)
test/Rect.hack (425, 2019-11-09)
test/Test.asm (247, 2019-11-09)
test/prog.txt (5, 2019-11-09)
# 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
```.javascript
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()
```
## Related
[hack-emulator-js](https://github.com/diversen/hack-emulator-js)
## License
MIT [Dennis Iversen](https://github.com/diversen)
近期下载者:
相关文件:
收藏者: