mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
[+] Registers enumeration (only GPRs) [+] Basic class ProcessorInstruction [+] Base class InstructionOperand it's child GeneralPurposeRegister [+] Added some abstraction to DestSourceInstruction [+] Added stub for first instruction - AddWithCarry
29 lines
604 B
C#
29 lines
604 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Lost.JIT.AMD64;
|
|
using System.IO;
|
|
//using Cosmos.Build.Windows;
|
|
|
|
namespace Lost
|
|
{
|
|
class LostTest
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
//using (var source = new StreamReader(args[0]))
|
|
//{
|
|
// string srcLine;
|
|
// while ((srcLine = source.ReadLine()) != null)
|
|
// {
|
|
// var op = ProcessorInstruction.Parse(srcLine);
|
|
// Console.WriteLine(op);
|
|
// }
|
|
//}
|
|
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|