DASM
Private Attributes
DExecHW::Video Class Reference

Text emulation for the DASM assembler. More...

List of all members.

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)

Detailed Description

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

We actually use the highlight only on the foreground colour, as bold in the colour attributes.

Definition at line 88 of file Video.pm.


Member Function Documentation

retval DExecHW::Video::new ( scalar  proto,
scalar  object 
) [private]

Construct a new hardware device object.

Parameters:
[in]$protoThis class object, or prototype to add to
[in]$objectThe object to proxy for
[in]$offsetThe offset this object is created for
Returns:
Assembler object
retval DExecHW::Video::read ( scalar  self,
scalar  offset,
scalar  exec 
) [private]

Read value.

Parameters:
[in]$selfObject
[in]$offsetOffset of register within window
[in]$execDExec object opon which this object is operating
Returns:
value of this register
retval DExecHW::Video::start ( scalar  self) [private]

Start up the hardware.

We perform all output through the Curses library.

Parameters:
[in]$selfObject
retval DExecHW::Video::stop ( scalar  self) [private]

Stop the hardware.

Parameters:
[in]$selfObject
retval DExecHW::Video::symbol ( scalar  self,
scalar  offset 
) [private]

Get the symbol name for an offset.

Parameters:
[in]$selfObject
[in]$offsetOffset of register within window
Returns:
symbol name to use
Return values:
undeffor a default symbol
""for no symbol
retval DExecHW::Video::window ( scalar  self) [private]

Return the size of of the implementation.

Parameters:
[in]$selfObject
Returns:
Size of the hardware implementation in words
retval DExecHW::Video::write ( scalar  self,
scalar  offset,
scalar  exec,
scalar  value 
) [private]

Write value.

Parameters:
[in]$selfObject
[in]$offsetOffset of register within window
[in]$execDExec object upon which this object is operating
[in]$valueValue to write
Returns:
ignored

Member Data Documentation

scalar DExecHW::Video::disabled [private]

Disable the Curses interface (for debug)

Definition at line 92 of file Video.pm.


The documentation for this class was generated from the following file: