Skip to content

Instantly share code, notes, and snippets.

@devhawk
Last active October 31, 2019 20:56
Show Gist options
  • Select an option

  • Save devhawk/b5bec1af202a95c4a12c03930b2f0bc1 to your computer and use it in GitHub Desktop.

Select an option

Save devhawk/b5bec1af202a95c4a12c03930b2f0bc1 to your computer and use it in GitHub Desktop.
import { disassembleByteCode } from '@neo-one/node-core'
import * as fs from "fs";
async function mainAsync() {
const PATH = String.raw`path\to\avm\file`
let avmByteCodes = await fs.promises.readFile(PATH);
const lines = disassembleByteCode(avmByteCodes)
for (const line of lines)
{
console.log(line.value);
}
}
mainAsync().catch(err => console.log(err));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment