mirror of
https://github.com/Wack0/IFPSTools.NET.git
synced 2025-06-18 10:45:36 -04:00
22 lines
538 B
C#
22 lines
538 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
|
|
namespace ifpsasm
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var arg = args[0];
|
|
var ext = Path.GetExtension(arg);
|
|
var bin = arg.Substring(0, arg.Length - ext.Length) + ".bin";
|
|
var script = IFPSAsmLib.Assembler.Assemble(File.ReadAllText(args[0]));
|
|
script.Save(File.OpenWrite(bin));
|
|
}
|
|
}
|
|
}
|