mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 05:11:08 +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
31 lines
526 B
C#
31 lines
526 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace Lost.JIT.AMD64
|
|
{
|
|
[Serializable]
|
|
public sealed class BreakPoint: ProcessorInstruction
|
|
{
|
|
public override int? Size
|
|
{
|
|
get { return 1; }
|
|
}
|
|
|
|
public override void Compile(Stream destStream)
|
|
{
|
|
destStream.WriteByte(0xCC);
|
|
}
|
|
|
|
public override string OpCodeFASM
|
|
{
|
|
get { return "int 3"; }
|
|
}
|
|
public override string ToFASM()
|
|
{
|
|
return OpCodeFASM;
|
|
}
|
|
}
|
|
}
|