#include <decoder.h>
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. | |
virtual unsigned char | GetModifiedRHi () const |
If this instruction modifies a pair of R0-R31 registers then ... | |
int | operator() () |
Performs instruction. | |
int | Trace () |
Performs instruction and write out instruction mnemonic for trace. | |
Protected Attributes | |
unsigned char | Rl |
unsigned char | Rh |
unsigned char | K |
HWSreg * | status |
Definition at line 112 of file decoder.h.
Definition at line 156 of file decoder.cpp.
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 164 of file decoder.cpp.
References Rl.
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 167 of file decoder.cpp.
References Rh.
int avr_op_ADIW::operator() | ( | ) | [virtual] |
Performs instruction.
Implements DecodedInstruction.
Definition at line 170 of file decoder.cpp.
References HWSreg_bool::C, DecodedInstruction::core, AvrDevice::GetCoreReg(), K, HWSreg_bool::N, Rh, Rl, HWSreg_bool::S, AvrDevice::SetCoreReg(), status, HWSreg_bool::V, and HWSreg_bool::Z.
Referenced by 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 K, MONSREG, operator()(), Rl, and traceOut.
unsigned char avr_op_ADIW::K [protected] |
Definition at line 127 of file decoder.h.
Referenced by operator()(), and Trace().
unsigned char avr_op_ADIW::Rh [protected] |
Definition at line 126 of file decoder.h.
Referenced by GetModifiedRHi(), and operator()().
unsigned char avr_op_ADIW::Rl [protected] |
Definition at line 125 of file decoder.h.
Referenced by GetModifiedR(), operator()(), and Trace().
HWSreg* avr_op_ADIW::status [protected] |
Definition at line 128 of file decoder.h.
Referenced by operator()().