avr_op_SBCI Class Reference

#include <decoder.h>

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

List of all members.

Public Member Functions

 avr_op_SBCI (word opcode, AvrDevice *c)
virtual unsigned char GetModifiedR () const
 If this instruction modifies a R0-R31 register then return its number, otherwise -1.
int operator() ()
 Performs instruction.
int Trace ()
 Performs instruction and write out instruction mnemonic for trace.

Protected Attributes

unsigned char R1
unsigned char K
HWSregstatus

Detailed Description

Definition at line 1558 of file decoder.h.


Constructor & Destructor Documentation

avr_op_SBCI::avr_op_SBCI ( word  opcode,
AvrDevice c 
)

Definition at line 1309 of file decoder.cpp.


Member Function Documentation

unsigned char avr_op_SBCI::GetModifiedR (  )  const [virtual]

If this instruction modifies a R0-R31 register then return its number, otherwise -1.

Reimplemented from DecodedInstruction.

Definition at line 1315 of file decoder.cpp.

References R1.

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

Performs instruction.

Implements DecodedInstruction.

Definition at line 1318 of file decoder.cpp.

References HWSreg_bool::C, DecodedInstruction::core, get_sub_carry(), get_sub_overflow(), AvrDevice::GetCoreReg(), HWSreg_bool::H, K, HWSreg_bool::N, R1, HWSreg_bool::S, AvrDevice::SetCoreReg(), 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_SBCI::Trace (  )  [virtual]

Performs instruction and write out instruction mnemonic for trace.

Implements DecodedInstruction.

Definition at line 610 of file decoder_trace.cpp.

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

Here is the call graph for this function:


Member Data Documentation

unsigned char avr_op_SBCI::K [protected]

Definition at line 1572 of file decoder.h.

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

unsigned char avr_op_SBCI::R1 [protected]

Definition at line 1571 of file decoder.h.

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

Definition at line 1573 of file decoder.h.

Referenced by operator()().


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