avr_op_CPC Class Reference

#include <decoder.h>

Inheritance diagram for avr_op_CPC:
Inheritance graph
[legend]
Collaboration diagram for avr_op_CPC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 avr_op_CPC (word opcode, AvrDevice *c)
int operator() ()
 Performs instruction.
int Trace ()
 Performs instruction and write out instruction mnemonic for trace.

Protected Attributes

unsigned char R1
unsigned char R2
HWSreg * status

Detailed Description

Definition at line 442 of file decoder.h.


Constructor & Destructor Documentation

avr_op_CPC::avr_op_CPC ( word  opcode,
AvrDevice *  c 
)

Definition at line 420 of file decoder.cpp.


Member Function Documentation

int avr_op_CPC::operator() (  )  [virtual]

Performs instruction.

Implements DecodedInstruction.

Definition at line 426 of file decoder.cpp.

References HWSreg_bool::C, DecodedInstruction::core, get_compare_carry(), get_compare_overflow(), AvrDevice::GetCoreReg(), HWSreg_bool::H, HWSreg_bool::N, R1, R2, HWSreg_bool::S, status, HWSreg_bool::V, and HWSreg_bool::Z.

Referenced by Trace().

Here is the call graph for this function:

Here is the caller graph for this function:

int avr_op_CPC::Trace (  )  [virtual]

Performs instruction and write out instruction mnemonic for trace.

Implements DecodedInstruction.

Definition at line 232 of file decoder_trace.cpp.

References MONSREG, operator()(), R1, R2, and traceOut.

Here is the call graph for this function:


Member Data Documentation

unsigned char avr_op_CPC::R1 [protected]

Definition at line 455 of file decoder.h.

Referenced by operator()(), and Trace().

unsigned char avr_op_CPC::R2 [protected]

Definition at line 456 of file decoder.h.

Referenced by operator()(), and Trace().

HWSreg* avr_op_CPC::status [protected]

Definition at line 457 of file decoder.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:46:00 2012 for Simulavr by  doxygen 1.6.3