Simon Wistow > CPU-Emulator-DCPU16-0.3 > CPU::Emulator::DCPU16::Disassembler

Download:
CPU-Emulator-DCPU16-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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.

syntax highlighting: