MachineInstruction Class

Definition

Line 10 of cmsxi/MachineCode.cm

Constructors & Destructor

public nothrow MachineInstruction(int opCode_)

Member Functions

public nothrow void AddOperand(Operand* operand)
public nothrow void Print(CodeFormatter& formatter, int labelWidth)
public nothrow void SetLabel(const String<char>& label_)

Member Variables

private String<char> label
private int opCode
private List<Operand*> operands

Constructor& Destructor Details

MachineInstruction Constructor

public nothrow MachineInstruction(int opCode_)

Definition
Line 12 of cmsxi/MachineCode.cm


Member Function Details

AddOperand Member Function

public nothrow void AddOperand(Operand* operand)

Definition
Line 19 of cmsxi/MachineCode.cm


Print Member Function

public nothrow void Print(CodeFormatter& formatter, int labelWidth)

Definition
Line 23 of cmsxi/MachineCode.cm


SetLabel Member Function

public nothrow void SetLabel(const String<char>& label_)

Definition
Line 15 of cmsxi/MachineCode.cm