DASM
Classes
DExecHWAdapter.pm File Reference

Hardware execution adapter. More...

Go to the source code of this file.

Classes

class  DExecHWAdapter
 Hardware execution adapter. More...

Detailed Description

Hardware execution adapter.

This class provides a simple interface to hardware implementations. Instances of the class can be created which associate a hardware offset with the object instance. The instance will dispatch 'read' and 'write' functions with the offset.

Example use:

  my $exec; # Execution object
  my @core;
  for my $offset (0..15)
  {
      $core[$offset] = new DExecHW($hw, $offset);
  }
  $core[4]->write($number, $exec);    # will call $hw->write(4, $number, $exec);
  my $value = $core[4]->read($exec);  # will call $hw->read(4, $exec);
Author:
Justin Fletcher

Definition in file DExecHWAdapter.pm.