mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
[-] some unnecessary overloads [+] overloaded operators in order to allow defining memory operands easily [+] overloaded automatic conversions to allow operands [+] Labels support [+] code generator based on F# started
18 lines
360 B
C#
18 lines
360 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Lost.JIT.AMD64
|
|
{
|
|
[Serializable]
|
|
public class LabelOperand: InstructionOperand
|
|
{
|
|
public string Label { get; set; }
|
|
|
|
public static implicit operator LabelOperand(string label)
|
|
{
|
|
return new LabelOperand() { Label = label };
|
|
}
|
|
}
|
|
}
|