0.1.4 • Published 2 years ago

octo-assembler v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Octo assembler

This package is just a very thin wrapper around John Earnest's excellent Octo-flavoured CHIP-8 assembler and disassembler. I made this wrapper just because it bugged me not to be able to depend on it through NPM.

How to use

npm install octo-assembler

And then you can run:

npx octo <input file> <output file>

Or use it in your package.json file:

{
  "name": "example",
  "scripts": {
    "assemble": "octo input.8o output.ch8",
    "disassemble": "octo --decompile input.ch8 output.8o",
    "assemble-all": "echo 'Assembling all *.8o files...'; for file in `find . -type f -name \"*.8o\"`; do echo \"  * $file\"; target=${file%.8o}; octo $file ${target}.ch8; done"
  }
}

See https://github.com/JohnEarnest/Octo#command-line-mode for available command line options to the assembler.