@chipcode/octo-assembler

0.2.0 • Public • Published

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 @chipcode/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.

Package Sidebar

Install

npm i @chipcode/octo-assembler

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

140 kB

Total Files

10

Last publish

Collaborators

  • timendus