C# Class Mosa.Compiler.Framework.BaseInstruction

Inheritance: IInstruction
Show file Open project: tgiphil/MOSA-Project Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BaseInstruction ( byte resultCount, byte operandCount ) : System

Initializes a new instance of the BaseInstruction class.

GetSizeString ( InstructionSize size ) : string
Resolve ( Context ctx, BaseMethodCompiler compiler ) : void

Validates the specified instruction.

ToString ( ) : string

Returns a string representation of the context.

ToString ( InstructionNode node ) : string

Returns a System.String that represents this instance.

Protected Methods

Method Description
GetConditionString ( ConditionCode conditioncode ) : string

Gets the condition string.

GetModifier ( InstructionNode node ) : string

Gets the instruction modifier.

Method Details

BaseInstruction() public method

Initializes a new instance of the BaseInstruction class.
public BaseInstruction ( byte resultCount, byte operandCount ) : System
resultCount byte The result count.
operandCount byte The operand count.
return System

GetConditionString() protected method

Gets the condition string.
protected GetConditionString ( ConditionCode conditioncode ) : string
conditioncode ConditionCode The condition code.
return string

GetModifier() protected method

Gets the instruction modifier.
protected GetModifier ( InstructionNode node ) : string
node InstructionNode The node.
return string

GetSizeString() public static method

public static GetSizeString ( InstructionSize size ) : string
size InstructionSize
return string

Resolve() public method

Validates the specified instruction.
public Resolve ( Context ctx, BaseMethodCompiler compiler ) : void
ctx Context The context.
compiler BaseMethodCompiler The compiler.
return void

ToString() public method

Returns a string representation of the context.
public ToString ( ) : string
return string

ToString() public method

Returns a System.String that represents this instance.
public ToString ( InstructionNode node ) : string
node InstructionNode The context.
return string