CInstructionMul Class Reference

#include <instructions.h>

Inheritance diagram for CInstructionMul:

CInstruction

List of all members.

Public Member Functions

CInstructionMulfactory ()
 creates a new instance of this instruction
void compile (std::list< std::string > &params)
 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


Detailed Description

Implementation of assembler command "mul" Syntax: mul R1, R2, R3 (R1 = R2 * R3)

Member Function Documentation

CInstructionMul* CInstructionMul::factory (  )  [inline, virtual]

creates a new instance of this instruction

Methodname:
factory
Parameters:
- 
Returns:
new instruction instance
Global variables used:
none
Exceptions:
none 
Conditions:
none

Implements CInstruction.

void CInstructionMul::compile ( std::list< std::string > &  params  )  [virtual]

parses instruction parameters and prepares the instruction for executing

Methodname:
compile
Parameters:
params list of parameters of this instruction
Returns:
-
Global variables used:
none
Exceptions:
std::runtime_error 
Conditions:
none

Implements CInstruction.

void CInstructionMul::execute ( CCPU cpu  )  [virtual]

executes the instruction

Methodname:
execute
Parameters:
cpu pointer to cpu
Returns:
-
Global variables used:
none
Exceptions:
std::runtime_error 
Conditions:
none

Implements CInstruction.


Member Data Documentation

unsigned CInstructionMul::m_regidx1 [protected]

register number

unsigned CInstructionMul::m_regidx2 [protected]

register number

unsigned CInstructionMul::m_regidx3 [protected]

register number


The documentation for this class was generated from the following files:
Generated on Thu May 14 18:19:17 2009 for mycpu by  doxygen 1.5.3