New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wren-8080

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wren-8080

An Intel 8080 disassembler

  • 0.2.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 17 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc