@@ -24,8 +24,8 @@ public static class Parser
2424 const int addressFieldIndex = 2 ;
2525 const int commentFieldIndex = 3 ;
2626
27- static readonly InstructionSet mInstructionSet = new InstructionSet ( ) ;
28- static readonly LoaderInstructions mLoaderInstructions = new LoaderInstructions ( ) ;
27+ static readonly InstructionSet mInstructionSet = new ( ) ;
28+ static readonly LoaderInstructions mLoaderInstructions = new ( ) ;
2929
3030 static bool IsCommentLine ( string sourceLine )
3131 {
@@ -283,7 +283,7 @@ static string[] SplitLine(string sourceLine)
283283 var opFieldEnd = FindFirstWhiteSpace ( sourceLine , opFieldStart ) ;
284284 if ( opFieldEnd == - 1 )
285285 {
286- return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart ) , "" , "" } ;
286+ return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine [ opFieldStart .. ] , "" , "" } ;
287287 }
288288
289289 int opFieldLength = opFieldEnd - opFieldStart ;
@@ -312,7 +312,7 @@ static string[] SplitLine(string sourceLine)
312312
313313 if ( addressFieldEnd == - 1 )
314314 {
315- return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart , opFieldLength ) , sourceLine . Substring ( addressFieldStart ) , "" } ;
315+ return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart , opFieldLength ) , sourceLine [ addressFieldStart .. ] , "" } ;
316316 }
317317
318318 int addressFieldLength = addressFieldEnd - addressFieldStart ;
@@ -322,7 +322,7 @@ static string[] SplitLine(string sourceLine)
322322 return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart , opFieldLength ) , sourceLine . Substring ( addressFieldStart , addressFieldLength ) , "" } ;
323323 }
324324
325- return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart , opFieldLength ) , sourceLine . Substring ( addressFieldStart , addressFieldLength ) , sourceLine . Substring ( commentFieldStart ) } ;
325+ return new string [ ] { sourceLine . Substring ( 0 , searchBeyondIndex ) , sourceLine . Substring ( opFieldStart , opFieldLength ) , sourceLine . Substring ( addressFieldStart , addressFieldLength ) , sourceLine [ commentFieldStart .. ] } ;
326326 }
327327 }
328328}
0 commit comments