DASM
DExecHW::DebugNumber Class Reference

HW implementation for 'DebugNumber'. More...

List of all members.

Public Member Functions

Public Functions
retval new (scalar proto, scalar object)
 Construct a new hardware device object.
retval window ()
 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

HW implementation for 'DebugNumber'.

This is a simple hardware implementation of a handler which will write a number to the screen when a value is written to the address.

Definition at line 21 of file DebugNumber.pm.


Member Function Documentation

retval DExecHW::DebugNumber::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::DebugNumber::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::DebugNumber::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

Return the size of of the implementation.

Parameters:
[in]$selfObject
Returns:
Size of the hardware implementation in words
retval DExecHW::DebugNumber::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: