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