mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 21:00:30 +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
34 lines
541 B
C#
34 lines
541 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace Lost.JIT.AMD64
|
|
{
|
|
[Serializable]
|
|
public class Label: ProcessorInstruction
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public override int? Size
|
|
{
|
|
get { return 0; }
|
|
}
|
|
|
|
public override string ToFASM()
|
|
{
|
|
return string.Format("{0}: ", Name);
|
|
}
|
|
|
|
public override string OpCodeFASM
|
|
{
|
|
get { return ":"; }
|
|
}
|
|
|
|
public override void Compile(Stream destStream)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|