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

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

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

CPU::Emulator::DCPU16::Assembler - assemble DCPU-16 bytecode

SYNOPSIS ^

    # Assemble a program
    my $bytes = CPU::Emulator::DCPU16::Assembler->assemble($asm);

    # Then either run it ...
    my $cpu   = CPU::Emulator::DCPU16->new();
    $cpu->load($bytes);
    $cpu-run;
    
    # ... or disassemble it
    my $asm   = CPU::Emulator::DCPU16::Disassembler->dump($bytes);

METHODS ^

assemble <assembler>

Return bytes representing an assembled program

syntax highlighting: