Simon Wistow > CPU-Emulator-DCPU16-0.3 > CPU::Emulator::DCPU16::Device::Console

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

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

CPU::Emulator::DCPU16::Device::Console - mapped console device for the DCPU16 emulator

SYNOPSIS ^

    $cpu->map_device('CPU::Emulator::DCPU16::Device::Console', $start_addr, $end_addr);

DESCRIPTION ^

METHODS ^

new <memory reference> <start address> <end address> <options>

Create a new console

set <address> <value>

Set the address of the mapped device to value.

get <address>

Get the value at address of the mapped device.

tick

Called after each instruction is called.

Prints out the current console.

syntax highlighting: