HW07-JRollinson/Assembler.java
private static void firstPass(String inputFileName, SymbolTable symbolTable) 
	{
		Parser parse = new Parser(inputFileName);
		String symbol = "";
		int romAddress;
		
		while(parse.hasMoreCommands())
		{
			parse.advance();
			romAddress = parse.getLineNumber();
			
			if(parse.getCommandType() == 'L')
			{
				symbol = parse.getSymbol();
				symbolTable.addEntry(symbol, romAddress);
			}
		}
	}
//HINT: when should rom address increase? What kind of commands?
when should rom address increase.
when should rom address increase .
private static void firstPass(String inputFileName, SymbolTable symbolTable) 
	{
		Parser parse = new Parser(inputFileName);
		String symbol = "";
		int romAddress;
		while(parse.hasMoreCommands())
		{
			parse.advance();
			romAddress = parse.getLineNumber();
			if(parse.getCommandType() == 'L')
			{
				symbol = parse.getSymbol();
				symbolTable.addEntry(symbol, romAddress);
			}
		}
	}
private static void firstPass ( String inputFileName , SymbolTable symbolTable ) { Parser parse = new Parser ( inputFileName ) ; String symbol = "" ; int romAddress ; while ( parse . hasMoreCommands ( ) ) { parse . advance ( ) ; romAddress = parse . getLineNumber ( ) ; if ( parse . getCommandType ( ) == 'L' ) { symbol = parse . getSymbol ( ) ; symbolTable . addEntry ( symbol , romAddress ) ; } } }
HINT: when should rom address increase?
HINT : when should rom address increase?