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.