private void simpleButton4_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
if (sfd.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new StreamWriter(sfd.FileName, false))
{
for(int i = 0; i < currstrList.Count; i ++)
{
string symbolName = string.Empty;
try
{
int idx = currstrList[i].IndexOf(':');
if (idx > 0)
{
int address = Convert.ToInt32(currstrList[i].Substring(0, idx), 16);
if (address > 0)
{
symbolName = Tools.Instance.GetSymbolNameByAddressInRange(address, address + 0x0F);
}
}
}
catch (Exception)
{
}
string exportLine = currstrList[i] + " ---- " + compstrList[i];
if (symbolName != string.Empty) exportLine += " << " + symbolName;
sw.WriteLine(exportLine);
}
}
}
}