C# Class Mosa.Compiler.Framework.CIL.UnaryBranchInstruction

Represents a unary branch instruction in internal representation.
This instruction is used to represent brfalse[.s] and brtrue[.s].
Inheritance: Mosa.Compiler.Framework.CIL.UnaryInstruction
Mostra file Open project: tgiphil/MOSA-Project

Public Methods

Method Description
Decode ( InstructionNode ctx, IInstructionDecoder decoder ) : void

Decodes the specified instruction.

DecodeTargets ( IInstructionDecoder decoder ) : bool
UnaryBranchInstruction ( OpCode opcode ) : System

Initializes a new instance of the UnaryBranchInstruction class.

Protected Methods

Method Description
GetModifier ( InstructionNode node ) : string

Gets the instruction modifier.

Method Details

Decode() public method

Decodes the specified instruction.
public Decode ( InstructionNode ctx, IInstructionDecoder decoder ) : void
ctx InstructionNode The context.
decoder IInstructionDecoder The instruction decoder, which holds the code stream.
return void

DecodeTargets() public method

public DecodeTargets ( IInstructionDecoder decoder ) : bool
decoder IInstructionDecoder
return bool

GetModifier() protected method

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

UnaryBranchInstruction() public method

Initializes a new instance of the UnaryBranchInstruction class.
public UnaryBranchInstruction ( OpCode opcode ) : System
opcode OpCode The opcode.
return System