Ejemplo n.º 1
0
        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);*/
        }
Ejemplo n.º 2
0
        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());
            }
        }