simulavr  1.1.0
avr_op_ADIW Class Reference

#include <decoder.h>

Inheritance diagram for avr_op_ADIW:

Public Member Functions

 avr_op_ADIW (word opcode, AvrDevice *c)
 
virtual unsigned char GetModifiedR () const
 If this instruction modifies a R0-R31 register then return its number, otherwise -1. More...
 
virtual unsigned char GetModifiedRHi () const
 If this instruction modifies a pair of R0-R31 registers then ... 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...
 

Protected Attributes

unsigned char Rl
 
unsigned char Rh
 
unsigned char K
 
HWSregstatus
 
- 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 112 of file decoder.h.

Constructor & Destructor Documentation

◆ avr_op_ADIW()

avr_op_ADIW::avr_op_ADIW ( word  opcode,
AvrDevice c 
)

Definition at line 155 of file decoder.cpp.

Member Function Documentation

◆ GetModifiedR()

unsigned char avr_op_ADIW::GetModifiedR ( ) const
virtual

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

Reimplemented from DecodedInstruction.

Definition at line 163 of file decoder.cpp.

References Rl.

◆ GetModifiedRHi()

unsigned char avr_op_ADIW::GetModifiedRHi ( ) const
virtual

If this instruction modifies a pair of R0-R31 registers then ...

Reimplemented from DecodedInstruction.

Definition at line 166 of file decoder.cpp.

References Rh.

◆ operator()()

int avr_op_ADIW::operator() ( )
virtual

◆ Trace()

int avr_op_ADIW::Trace ( )
virtual

Performs instruction and write out instruction mnemonic for trace.

Implements DecodedInstruction.

Definition at line 73 of file decoder_trace.cpp.

References MONSREG, and traceOut.

Member Data Documentation

◆ K

unsigned char avr_op_ADIW::K
protected

Definition at line 127 of file decoder.h.

Referenced by operator()().

◆ Rh

unsigned char avr_op_ADIW::Rh
protected

Definition at line 126 of file decoder.h.

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

◆ Rl

unsigned char avr_op_ADIW::Rl
protected

Definition at line 125 of file decoder.h.

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

◆ status

HWSreg* avr_op_ADIW::status
protected

Definition at line 128 of file decoder.h.

Referenced by operator()().


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