#include <instructions.h>
Public Member Functions | |
CInstructionDiv * | 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 *cpu) |
executes the instruction | |
Protected Attributes | |
unsigned | m_regidx1 |
unsigned | m_regidx2 |
unsigned | m_regidx3 |
CInstructionDiv* CInstructionDiv::factory | ( | ) | [inline, virtual] |
creates a new instance of this instruction
- |
none |
Implements CInstruction.
void CInstructionDiv::compile | ( | std::list< std::string > & | params | ) | [virtual] |
parses instruction parameters and prepares the instruction for executing
params | list of parameters of this instruction |
std::runtime_error |
Implements CInstruction.
void CInstructionDiv::execute | ( | CCPU * | cpu | ) | [virtual] |
executes the instruction
cpu | pointer to cpu |
std::runtime_error |
Implements CInstruction.
unsigned CInstructionDiv::m_regidx1 [protected] |
register number
unsigned CInstructionDiv::m_regidx2 [protected] |
register number
unsigned CInstructionDiv::m_regidx3 [protected] |
register number