DASM
DExecHW::BasicVideo Class Reference

Basic text emulation for the DASM assembler. More...

List of all members.

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.

Detailed Description

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.


Member Function Documentation

retval DExecHW::BasicVideo::new ( scalar  proto,
scalar  object 
)

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::BasicVideo::read ( scalar  self,
scalar  offset,
scalar  exec 
)

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::BasicVideo::start ( scalar  self)

Start up the hardware.

We perform all output through the Curses library.

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

Stop the hardware.

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

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::BasicVideo::window ( scalar  self)

Return the size of of the implementation.

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

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

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