public void AddFlag(string title, int address, int bitnumber)
{
if (sw != null)
{
ConstantID++;
sw.WriteLine("%%FLAG%%");
sw.WriteLine("000002 UniqueID =0x" + ConstantID.ToString("X4"));
sw.WriteLine("030005 Title =\"" + title + "\"");
sw.WriteLine("030011 DescSize =0x13");
sw.WriteLine("030010 Desc =\"Enable\\disable VSS\"");
sw.WriteLine("030100 Address =0x" + address.ToString("X6"));
sw.WriteLine("030200 BitNumber =0x" + bitnumber.ToString("X2"));
sw.WriteLine("%%END%%");
}
}