ProcessorBehaviour Class Reference

#include <instruction.h>

Collaboration diagram for ProcessorBehaviour:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProcessorBehaviour ()
void reset ()
RegisterBehaviourreg (const Register &reg)

Public Attributes

RegisterBehaviour working
 The working register.
RegisterBehaviour status
 The status register.

Protected Types

typedef QMap< Register, RegisterBehaviourRegisterMap

Protected Attributes

RegisterMap m_registers

Detailed Description

Contains behavioural information for each register.

Author:
David Saxton

Definition at line 394 of file instruction.h.


Member Function Documentation

void ProcessorBehaviour::reset (  ) 

Calls reset() for each RegisterBehaviour.

Definition at line 731 of file instruction.cpp.

References m_registers, RegisterBehaviour::reset(), status, and working.

RegisterBehaviour & ProcessorBehaviour::reg ( const Register reg  ) 

Returns:
behaviour for the given register.

Definition at line 742 of file instruction.cpp.

References m_registers, status, and working.

Referenced by Instr_btfss::behaviour(), Instr_btfsc::behaviour(), Instr_bsf::behaviour(), Instr_bcf::behaviour(), Instr_xorwf::behaviour(), Instr_swapf::behaviour(), Instr_subwf::behaviour(), Instr_rrf::behaviour(), Instr_rlf::behaviour(), Instr_movwf::behaviour(), Instr_movf::behaviour(), Instr_iorwf::behaviour(), Instr_incf::behaviour(), Instr_decfsz::behaviour(), Instr_decf::behaviour(), Instr_clrf::behaviour(), Instr_andwf::behaviour(), Instr_addwf::behaviour(), Optimizer::optimizeInstructions(), and Optimizer::registerDepends().


Member Data Documentation

RegisterMap ProcessorBehaviour::m_registers [protected]

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

Definition at line 419 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:55 2007 for KTechLab by  doxygen 1.5.1