private static ParsedOutput ParseLine(string line) { if (line == "") { return(null); } var output = new ParsedOutput(); var split = line.Split(new[] { ';' }, 2, options: StringSplitOptions.None); var main = split[0].Trim(); var comment = split[1].Trim(); var csplit = comment.Split(new[] { '|' }, 3, options: StringSplitOptions.None); output.Pc = csplit[0].Trim(); output.RawBytes = csplit[1].Trim(); var iasplit = csplit[2].Split(new[] { ';' }, 2, options: StringSplitOptions.None); output.Ia = iasplit[0].Trim(); output.RealComment = iasplit[1].Trim(); var msplit = main.Split(new[] { ':' }, 2, options: StringSplitOptions.None); var m1 = msplit[0].Trim(); var m2 = msplit.Length > 1 ? msplit[1].Trim() : ""; if (m2 != "") { output.Label = m1; output.Instr = m2; } else { output.Label = ""; output.Instr = m1; } return(output); }
private bool Equals(ParsedOutput other) { return(Label == other.Label && Instr == other.Instr && Pc == other.Pc && RawBytes == other.RawBytes && Ia == other.Ia && RealComment == other.RealComment); }
protected bool Equals(ParsedOutput other) { return(Label == other.Label && Instr == other.Instr && Pc == other.Pc && Rawbytes == other.Rawbytes && Ia == other.Ia && Realcomment == other.Realcomment); }