private int ParseLabel(string line)
{
var index1 = line.IndexOf(' ');
var index2 = line.IndexOf('\t');
var index = index1 < index2 || index2 == -1 ? index1 : index2 < index1 || index1 != -1 ? index2 : -1;
var labelName = index > 1 ? line.Substring(1, index - 1) : line.Substring(1, line.Length - 1);
if (this.labelAddressDitionary.ContainsKey(labelName))
{
throw new Exception(string.Format("Error! Label '{0}' already exists!", labelName));
}
this.labelAddressDitionary.Add(labelName.Trim(), (ushort)this.machineCode.Count);
return index;
}