avr_op_LDI Class Reference

#include <decoder.h>

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

List of all members.

Public Member Functions

 avr_op_LDI (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

Detailed Description

Definition at line 887 of file decoder.h.


Constructor & Destructor Documentation

avr_op_LDI::avr_op_LDI ( word  opcode,
AvrDevice c 
)

Definition at line 803 of file decoder.cpp.


Member Function Documentation

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

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

Reimplemented from DecodedInstruction.

Definition at line 808 of file decoder.cpp.

References R1.

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

Performs instruction.

Implements DecodedInstruction.

Definition at line 811 of file decoder.cpp.

References DecodedInstruction::core, K, R1, and AvrDevice::SetCoreReg().

Referenced by Trace().

Here is the call graph for this function:

Here is the caller graph for this function:

int avr_op_LDI::Trace (  )  [virtual]

Performs instruction and write out instruction mnemonic for trace.

Implements DecodedInstruction.

Definition at line 397 of file decoder_trace.cpp.

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

Here is the call graph for this function:


Member Data Documentation

unsigned char avr_op_LDI::K [protected]

Definition at line 901 of file decoder.h.

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

unsigned char avr_op_LDI::R1 [protected]

Definition at line 900 of file decoder.h.

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


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