ByteValue Class

Definition

Line 172 of cmsxi/Value.cm

Inheritance

Constructors & Destructor

public nothrow ByteValue(byte value_)

Member Functions

public override void GenerateCode(MachineCode& machineCode, String<char>& label, Context& context)
public override void GenerateSetValue(Register* reg, MachineCode& machineCode, int line, Instruction* inst)
public override nothrow bool IsImmediate(byte& immediateValue) const
public override Operand* MakeDataOperand(Context& context) const
public override nothrow String<char> Name() const
public override ConstantValue* SignExtendTo(Type* targetType, int line)
public override ConstantValue* TruncateTo(Type* targetType, int line)
public override ConstantValue* ZeroExtendTo(Type* targetType, int line)

Member Variables

public byte value

Constructor& Destructor Details

ByteValue Constructor

public nothrow ByteValue(byte value_)

Definition
Line 175 of cmsxi/Value.cm


Member Function Details

GenerateCode Member Function

public override void GenerateCode(MachineCode& machineCode, String<char>& label, Context& context)

Definition
Line 205 of cmsxi/Value.cm


GenerateSetValue Member Function

public override void GenerateSetValue(Register* reg, MachineCode& machineCode, int line, Instruction* inst)

Definition
Line 187 of cmsxi/Value.cm


IsImmediate Member Function

public override nothrow bool IsImmediate(byte& immediateValue)

Definition
Line 182 of cmsxi/Value.cm


MakeDataOperand Member Function

public override Operand* MakeDataOperand(Context& context)

Definition
Line 211 of cmsxi/Value.cm


Name Member Function

public override nothrow String<char> Name()

Definition
Line 178 of cmsxi/Value.cm


SignExtendTo Member Function

public override ConstantValue* SignExtendTo(Type* targetType, int line)

Definition
Line 193 of cmsxi/Value.cm


TruncateTo Member Function

public override ConstantValue* TruncateTo(Type* targetType, int line)

Definition
Line 201 of cmsxi/Value.cm


ZeroExtendTo Member Function

public override ConstantValue* ZeroExtendTo(Type* targetType, int line)

Definition
Line 197 of cmsxi/Value.cm