DASM
|
Text emulation for the DASM assembler. More...
Private 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. | |
Private Attributes | |
scalar | disabled |
Disable the Curses interface (for debug) |
Text emulation for the DASM assembler.
This module provides the video RAM for a text array chip, based on what appears to be the video hardware for the assembler.
The chip is 32x12 = 384 bytes for the video array.
The allocation in the window is:
Bit mapping:
ccccccccbiiiiiii
iiiiiii
b
cccccccc
ffffbbbb
, each of which takes the form hrgb
:h
r
g
b
We actually use the highlight only on the foreground colour, as bold in the colour attributes.
retval DExecHW::Video::new | ( | scalar | proto, |
scalar | object | ||
) | [private] |
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::Video::read | ( | scalar | self, |
scalar | offset, | ||
scalar | exec | ||
) | [private] |
Read value.
[in] | $self | Object |
[in] | $offset | Offset of register within window |
[in] | $exec | DExec object opon which this object is operating |
retval DExecHW::Video::start | ( | scalar | self | ) | [private] |
Start up the hardware.
We perform all output through the Curses library.
[in] | $self | Object |
retval DExecHW::Video::stop | ( | scalar | self | ) | [private] |
Stop the hardware.
[in] | $self | Object |
retval DExecHW::Video::symbol | ( | scalar | self, |
scalar | offset | ||
) | [private] |
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::Video::window | ( | scalar | self | ) | [private] |
Return the size of of the implementation.
[in] | $self | Object |
retval DExecHW::Video::write | ( | scalar | self, |
scalar | offset, | ||
scalar | exec, | ||
scalar | value | ||
) | [private] |
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 |
scalar DExecHW::Video::disabled [private] |