#include <decoder.h>


Public Member Functions | |
| avr_op_SBC (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 | R2 |
| HWSreg * | status |
Definition at line 1534 of file decoder.h.
Definition at line 1280 of file decoder.cpp.
| unsigned char avr_op_SBC::GetModifiedR | ( | ) | const [virtual] |
If this instruction modifies a R0-R31 register then return its number, otherwise -1.
Reimplemented from DecodedInstruction.
Definition at line 1286 of file decoder.cpp.
References R1.
| int avr_op_SBC::operator() | ( | ) | [virtual] |
Performs instruction.
Implements DecodedInstruction.
Definition at line 1289 of file decoder.cpp.
References HWSreg_bool::C, DecodedInstruction::core, get_sub_carry(), get_sub_overflow(), AvrDevice::GetCoreReg(), HWSreg_bool::H, HWSreg_bool::N, R1, R2, HWSreg_bool::S, AvrDevice::SetCoreReg(), status, HWSreg_bool::V, and HWSreg_bool::Z.
Referenced by Trace().


| int avr_op_SBC::Trace | ( | ) | [virtual] |
Performs instruction and write out instruction mnemonic for trace.
Implements DecodedInstruction.
Definition at line 603 of file decoder_trace.cpp.
References MONSREG, operator()(), R1, R2, and traceOut.

unsigned char avr_op_SBC::R1 [protected] |
Definition at line 1547 of file decoder.h.
Referenced by GetModifiedR(), operator()(), and Trace().
unsigned char avr_op_SBC::R2 [protected] |
Definition at line 1548 of file decoder.h.
Referenced by operator()(), and Trace().
HWSreg* avr_op_SBC::status [protected] |
Definition at line 1549 of file decoder.h.
Referenced by operator()().
1.6.3