RegisterDepends Class Reference

#include <instruction.h>

List of all members.

Public Member Functions

 RegisterDepends ()
void reset ()
uchar & reg (const Register &reg)

Public Attributes

uchar working
 The working register.
uchar status
 The status register.

Protected Types

typedef QMap< Register, uchar > RegisterMap

Protected Attributes

RegisterMap m_registers


Detailed Description

Contains information on whether a register is overwritten before its value is used. Each uchar respresents the 8 bits of the register; if the bit is 1, then the corresponding bit of the register is used by the Instruction or one of its outputs before it is overwritten.

Author:
David Saxton

Definition at line 431 of file instruction.h.


Member Function Documentation

void RegisterDepends::reset (  ) 

Sets all the depends values to 0x0.

Definition at line 763 of file instruction.cpp.

References m_registers, status, and working.

Referenced by RegisterDepends(), and Instruction::resetRegisterDepends().

uchar & RegisterDepends::reg ( const Register reg  ) 

Returns:
behaviour for the given register.

Definition at line 774 of file instruction.cpp.

References m_registers, status, and working.

Referenced by Instruction::registerDepends(), and Instruction::setRegisterDepends().


Member Data Documentation

RegisterMap RegisterDepends::m_registers [protected]

All registers other than working and status. Entries are created on calls to reg with a new Register.

Definition at line 456 of file instruction.h.

Referenced by reg(), and reset().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:57 2007 for KTechLab by  doxygen 1.5.1