コード例 #1
0
ファイル: Form1.cs プロジェクト: EntityFX/Spectrum
        private void Form1_Load(object sender, EventArgs e)
        {
            _spectrum = new Z48Spectrum();
            disassembler = new Z80Disassembler(_spectrum.Memory);
            _spectrum.LoadROM(@"ZXS48.rom");
            _spectrum.Video.OutputBitmap = (Bitmap)spectrumVideoOutputPictureBox.Image;

            var dump = MemoryDumpHelper.DumpAsText(_spectrum.Memory);
            //var diassembly = disassembler.DisassembleAll(_spectrum.Memory);

            /*byte[] buffer = File.ReadAllBytes(@"C:\Users\SolopiyA\Downloads\cse-code-7\cse-code-7\roms\POPCORN.Z80");
            Format2 fileFormatz80 = new Format2();
            fileFormatz80.Read(buffer);
            _spectrum.LoadRAMFromFile(fileFormatz80);*/
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: EntityFX/Spectrum
        static void Main()
        {
            var spectrum = new Z48Spectrum();
            //spectrum.LoadROM("C:\\Speccy\\Spectrum.rom");
            spectrum.LoadROM(@"ZXS48.rom");
            var bitmap = new Bitmap(256, 192);
            spectrum.Video.OutputBitmap = bitmap;

            /*byte[] buffer = File.ReadAllBytes(@"C: \Users\SolopiyA\Downloads\zxmak.net.1.0.8.4\roms\MATCHD2.Z80");
            Format2 fileFormatz80 = new Format2();
            fileFormatz80.Read(buffer);
            spectrum.LoadRAMFromFile(fileFormatz80);*/

            while (true)
            {
                spectrum.Run();
                // spectrum.Video.Refresh();
                //Console.WriteLine(counter);
                //Console.Write(spectrum.ZilogZ80Cpu.Status.ToString());
            }
        }