Пример #1
0
        void TestFile(string file)
        {
            var pla = PLA.Parse(new StreamReader(File.OpenRead(file)));

            TestContext.WriteLine(pla.ToString());
            TestContext.WriteLine("Cubes: {0}", pla.Cover.Count);
            var cov = new PLA(EspressoNet.Espresso(pla.Cover, pla.CoverType));

            TestContext.WriteLine(cov.ToString());
            TestContext.WriteLine("Cubes: {0}", cov.Cover.Count);
        }
Пример #2
0
        public static void Main(string[] args)
        {
            var pla = PLA.Parse(new StreamReader(File.OpenRead(@"C:\dev\Espresso\tlex\alu4.pla")));

            pla.WriteTo(System.Console.Out);
            System.Console.WriteLine("Cubes: {0}", pla.Cover.Count);
            System.Console.WriteLine("press enter to process...");
            System.Console.ReadLine();

            var rst = EspressoNet.Espresso(pla.Cover, pla.CoverType != EspressoCoverType.None ? pla.CoverType : EspressoCoverType.F_TYPE | EspressoCoverType.D_TYPE);

            pla = new PLA(rst);
            pla.WriteTo(System.Console.Out);
            System.Console.WriteLine("Cubes: {0}", pla.Cover.Count);
            System.Console.ReadLine();
        }
Пример #3
0
        public void Init(byte[] _BASICROM, byte[] _KERNALROM, byte[] _CHARENROM, byte[] _C1541ROM, Keyboard _keyboard)
        {
            MPU  = new PLA(this, _BASICROM, _KERNALROM, _CHARENROM);
            CPU  = new CPU_6502("C64", MPU);
            SID  = new SID_NullDevice();    //
            IEC  = new IECBus();
            VIC  = new VIC_II(this);
            CIA1 = new CIA1(_keyboard);
            CIA2 = new CIA2();

            CIA1.SetJoystick(1, Joystick1);
            CIA1.SetJoystick(2, Joystick2);

            Datasette = new DatasetteTAP();
            // Floppy = new C1541();

            Reset();

            ClockActive = false;
        }
Пример #4
0
 public DataTable PlanDropDown()
 {
     return(PLA.GetDataPlanDrop());
 }