The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CPU::Emulator::DCPU16::Disassembler - a disassembler for DCPU-16 bytecode

SYNOPSIS

    # Disassemble a single instruction
    my $instruction = CPU::Emulator::DCPU16::Disassembler->disassemble($pc, @memory);

    # Dump a whole program
    my $asm         = CPU::Emulator::DCPU16::Disassembler->dump($bytes);

disassemble <pc> <memory>

Given a program counter and an array of memory words will dissassemble the current instruction.

dump <words>

Given an scalar containing program bytecode will return a string representing the assembler.