CPU::Emulator::DCPU16::Assembler - assemble DCPU-16 bytecode
# 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);
Return bytes representing an assembled program
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.