39 lines
955 B
C#
39 lines
955 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Core;
|
|
|
|
namespace MathApp
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
string contents;
|
|
if (args.Length > 0)
|
|
{
|
|
contents = File.ReadAllText(args[1]);
|
|
DebugDumper.GenerateDumpFile(contents, args[1] + "dump");
|
|
|
|
}
|
|
else
|
|
{
|
|
if (File.Exists("main.asm"))
|
|
{
|
|
contents = File.ReadAllText("main.asm");
|
|
DebugDumper.GenerateDumpFile(contents, "main.asmdump");
|
|
}
|
|
else
|
|
{
|
|
contents = "";
|
|
}
|
|
}
|
|
Operations ops = new Operations(409600);
|
|
Console.WriteLine("[ASM] System started!");
|
|
ops.EquParserLoop(contents);
|
|
}
|
|
}
|
|
}
|