DASM
|
Basic text emulation for the DASM assembler. More...
Public Member Functions | |
Public Functions | |
retval | new (scalar proto, scalar object) |
Construct a new hardware device object. | |
retval | start (scalar self) |
Start up the hardware. | |
retval | stop (scalar self) |
Stop the hardware. | |
retval | window (scalar self) |
Return the size of of the implementation. | |
retval | read (scalar self, scalar offset, scalar exec) |
Read value. | |
retval | write (scalar self, scalar offset, scalar exec, scalar value) |
Write value. | |
retval | symbol (scalar self, scalar offset) |
Get the symbol name for an offset. |
Basic text emulation for the DASM assembler.
This module provides the video RAM for a simple text array chip.
The chip is 40x25 = 1000 bytes, out of the 1024 that are mapped. For simplicity, we use only the bottom 8 bits of the 16 bits for each character.
Definition at line 26 of file BasicVideo.pm.
retval DExecHW::BasicVideo::new | ( | scalar | proto, |
scalar | object | ||
) |
Construct a new hardware device object.
[in] | $proto | This class object, or prototype to add to |
[in] | $object | The object to proxy for |
[in] | $offset | The offset this object is created for |
retval DExecHW::BasicVideo::read | ( | scalar | self, |
scalar | offset, | ||
scalar | exec | ||
) |
Read value.
[in] | $self | Object |
[in] | $offset | Offset of register within window |
[in] | $exec | DExec object opon which this object is operating |
retval DExecHW::BasicVideo::start | ( | scalar | self | ) |
Start up the hardware.
We perform all output through the Curses library.
[in] | $self | Object |
retval DExecHW::BasicVideo::stop | ( | scalar | self | ) |
Stop the hardware.
[in] | $self | Object |
retval DExecHW::BasicVideo::symbol | ( | scalar | self, |
scalar | offset | ||
) |
Get the symbol name for an offset.
[in] | $self | Object |
[in] | $offset | Offset of register within window |
undef | for a default symbol |
"" | for no symbol |
retval DExecHW::BasicVideo::window | ( | scalar | self | ) |
Return the size of of the implementation.
[in] | $self | Object |
retval DExecHW::BasicVideo::write | ( | scalar | self, |
scalar | offset, | ||
scalar | exec, | ||
scalar | value | ||
) |
Write value.
[in] | $self | Object |
[in] | $offset | Offset of register within window |
[in] | $exec | DExec object upon which this object is operating |
[in] | $value | Value to write |