Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Register Class Reference

#include <instruction.h>

List of all members.


Detailed Description

Abstraction for a Register - should be used instead of a register name. Contains info like whether or not the adressing of the register depends on the bank selection.

Author:
David Saxton

Definition at line 45 of file instruction.h.


Public Types

enum  Banks { Bank0 = 1 << 0, Bank1 = 1 << 1 }
enum  Type {
  TMR0, OPTION_REG, PCL, STATUS,
  FSR, PORTA, TRISA, PORTB,
  TRISB, EEDATA, EECON1, EEADR,
  EECON2, PCLATH, INTCON, WORKING,
  GPR, none
}

Public Member Functions

bool affectsExternal () const
bool bankDependent () const
uchar banks () const
QString name () const
bool operator< (const Register &reg) const
bool operator== (const Register &reg) const
 Register (const char *name)
 Register (const QString &name)
 Register (Type type=none)
Type type () const

Protected Attributes

QString m_name
Type m_type

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

Generated by  Doxygen 1.6.0   Back to index