Ejemplo n.º 1
0
        private void SaveProgram(CodeGeneratorContext context)
        {
            using (var binfile = new FileStream(Settings.OutputPath, FileMode.Create, FileAccess.Write))
            {
                __prg.DataMapLength = (ushort)context.FieldCounter;

                ByteCode = __prg.Compile();
                binfile.Write(ByteCode, 0, ByteCode.Length);

                binfile.Flush(true);
                binfile.Close();
            }
        }