private void LoadSPC_Click(object sender, EventArgs e)
{
if (IsSerialPortClosed()) return;
if (openFileDialog.ShowDialog() != DialogResult.OK) return;
UploadSPCRam(new BinaryReader(openFileDialog.OpenFile()));
serialPort.Write(autoPlay.Checked ? "A1" : "A0");
if (autoPlay.Checked == _autoPlaySet) ReadLine();
_autoPlaySet = autoPlay.Checked;
textOutput.AppendText("File " + openFileDialog.FileName + " loaded into SRAM" + Environment.NewLine);
}