#include <instructions.h>

Public Member Functions | |
| CInstructionSub * | factory () |
| creates a new instance of this instruction | |
| void | compile (std::list< std::string > ¶ms) |
| parses instruction parameters and prepares the instruction for executing | |
| void | execute (CCPU< T > *cpu) |
| executes the instruction | |
Protected Attributes | |
| unsigned | m_regidx1 |
| unsigned | m_regidx2 |
| unsigned | m_regidx3 |
| CInstructionSub* CInstructionSub< T >::factory | ( | ) | [inline, virtual] |
creates a new instance of this instruction
| - |
| none |
Implements CInstruction< T >.
| void CInstructionSub< T >::compile | ( | std::list< std::string > & | params | ) | [inline, virtual] |
parses instruction parameters and prepares the instruction for executing
| params | list of parameters of this instruction |
| CInstructionError |
Implements CInstruction< T >.
| void CInstructionSub< T >::execute | ( | CCPU< T > * | cpu | ) | [inline, virtual] |
executes the instruction
| cpu | pointer to cpu |
| CInstructionError |
Implements CInstruction< T >.
unsigned CInstructionSub< T >::m_regidx1 [protected] |
register number
unsigned CInstructionSub< T >::m_regidx2 [protected] |
register number
unsigned CInstructionSub< T >::m_regidx3 [protected] |
register number
1.5.3