simulavr  1.1.0
avr_op_LDI Class Reference

#include <decoder.h>

Inheritance diagram for avr_op_LDI:

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. More...
 
int operator() ()
 Performs instruction. More...
 
int Trace ()
 Performs instruction and write out instruction mnemonic for trace. More...
 
- Public Member Functions inherited from DecodedInstruction
 DecodedInstruction (AvrDevice *c, bool s2w=false)
 
virtual ~DecodedInstruction ()
 
bool IsInstruction2Words ()
 Returns true, if instruction need 2 words (4byte) More...
 
virtual unsigned char GetModifiedRHi () const
 If this instruction modifies a pair of R0-R31 registers then ... More...
 

Protected Attributes

unsigned char R1
 
unsigned char K
 
- Protected Attributes inherited from DecodedInstruction
AvrDevicecore
 Link to device instance. More...
 
bool size2Word
 Flag: true, if instruction has 2 words. More...
 

Detailed Description

Definition at line 887 of file decoder.h.

Constructor & Destructor Documentation

◆ avr_op_LDI()

avr_op_LDI::avr_op_LDI ( word  opcode,
AvrDevice c 
)

Definition at line 797 of file decoder.cpp.

Member Function Documentation

◆ GetModifiedR()

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 802 of file decoder.cpp.

References R1.

◆ operator()()

int avr_op_LDI::operator() ( )
virtual

Performs instruction.

Implements DecodedInstruction.

Definition at line 805 of file decoder.cpp.

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

◆ Trace()

int avr_op_LDI::Trace ( )
virtual

Performs instruction and write out instruction mnemonic for trace.

Implements DecodedInstruction.

Definition at line 391 of file decoder_trace.cpp.

References traceOut.

Member Data Documentation

◆ K

unsigned char avr_op_LDI::K
protected

Definition at line 901 of file decoder.h.

Referenced by operator()().

◆ R1

unsigned char avr_op_LDI::R1
protected

Definition at line 900 of file decoder.h.

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


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