0.2.14 • Published 6 years ago

wren-8080 v0.2.14

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

wren-8080

An Intel 8080 disassembler. Named after Sir Christopher Wren 🇬🇧.

CLI Usage

Install this package:

$ npm install -g wren-8080

In order to disassemble a file use the command:

$ wren-8080 [path] [options]

Options:

Short-formLong-formDescription
-d--dedupeDoes not output duplicate instructions
-c--csvSave the results to a csv file
-t--txtSave the results to a text file
-h--helpOutput usage information

Programmatic Usage

Decoding an OP Code

const { decode } = require('wren-8080');
decode(0x01); // { name: "STAX B", size: "1" }

Disassembling a file

const { disassembleFile } = require('wren-8080');

disassembleFile('./myFile.rom'); // [{ name: "LXI D, D16", size: "1", arg0: 0xff, arg1: 0x1c }, { name: "NOP", size: "1" }]

Disassembling a Buffer

const { readFile } = require('fs');
const { disassemble } = require('wren-8080');

readFile('./myFile.rom', (err, buffer) => {
    if (err) throw e;
    disassemble(buffer); // [{ name: "LXI D, D16", size: "1", arg0: 0xff, arg1: 0x1c }, { name: "NOP", size: "1" }]
});

License

Feel free to use it in any way you want to. I don't like copyright.

The internet was made for everyone

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.0.1

6 years ago