Пример #1
0
        private void exportTilemapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int amount = 0x80 * 0x80, vram = 0;
            int mode = Data.GetPPUReg(0x05) & 0x7;

            if (mode != 7)
            {
                int bg = bgOfInterest - 1;
                vram = ((Data.GetPPUReg(0x07 + bg) & 0xFC) << 8) & 0xFC00;
                int scSize = Data.GetPPUReg(0x07 + bg) & 0x3;
                amount = 0x20 * 0x20 * (scSize == 0 ? 1 : scSize == 3 ? 4 : 2);
            }

            ExportData   export = new ExportData("VRAM", Data.GetVRAMArray(), amount: amount, step: 3, arrOffset: vram);
            DialogResult result = export.ShowDialog();
        }
Пример #2
0
 private void exportDataToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExportData   export = new ExportData("VRAM", Data.GetVRAMArray());
     DialogResult result = export.ShowDialog();
 }