CPU::Emulator::DCPU16::Device - generic base memory mapped device for the DCPU16 emulator
$cpu->map_device('CPU::Emulator::DCPU16::Device::Console', $start_addr, $end_addr);
This base class should not be used directly - it should be subclassed and get methods should be provided.
Create a new device and map it to the memory.
Get the start address of this mapped device
Get the end address of this mapped device
Called after each instruction is called
Set the address of the mapped device to value.
Get the value at address of the mapped device.
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.