CSPspEmu.Core.Cpu.Assembler.MipsAssembler.StaticAssembleInstructions C# (CSharp) Method

StaticAssembleInstructions() public static method

public static StaticAssembleInstructions ( string Program ) : AssemblerResult
Program string
return AssemblerResult
        public static AssemblerResult StaticAssembleInstructions(string Program)
        {
            var Memory = new MemoryStream();
            var Result = new AssemblerResult()
            {
                Instructions = new StreamStructArrayWrapper<Instruction>(Memory),
            };
            var MipsAssembler = new MipsAssembler(Memory);
            MipsAssembler.Assemble(Program, Result);
            return Result;
        }