Skip to content

Timendus/octo-assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Repository deprecated, this has been moved to https://github.com/Timendus/chipcode/tree/main/octo-assembler

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.

About

Wraps John Earnest's Octo-flavoured CHIP-8 assembler in an NPM package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors