CPU::Emulator::DCPU16::Disassembler - a disassembler for DCPU-16 bytecode
# 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);
Given a program counter and an array of memory words will dissassemble the current instruction.
Given an scalar containing program bytecode will return a string representing the assembler.
To install CPU::Emulator::DCPU16, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPU::Emulator::DCPU16
CPAN shell
perl -MCPAN -e shell install CPU::Emulator::DCPU16
For more information on module installation, please visit the detailed CPAN module installation guide.