Pass3(File oSource, int addressMax, byte[] iNES, boolean iNESWrite) {
		this.addressMax = addressMax;												// Set the maximum address
		this.source = new File(oSource.getName() + ".tmp.fin");						// Set the source file
		this.iNESWrite = iNESWrite;													// Set the iNES write indicator
		String name = oSource.getName();
		if (name.indexOf(".") != -1) name = name.substring(0, name.indexOf("."));	// Get the file name w/o the file extension
		this.game = new File(name + ".nes");										// Set the output file name

		// Accumulator - Immediate - Zero Page - Zero Page,x - Zero Page,y - Absolute - Absolute,X - Absolute,Y - Indirect - Indirect,X - Indirect,Y - Relative - Implied
		opcodeMap = new HashMap<String, int[]>(56);					// Initialize the HashMap w/ all 56 entries
		opcodeMap.put("adc", new int[]{0xFF, 0x69, 0x65, 0x75, 0xFF, 0x6D, 0x7D, 0x79, 0xFF, 0x61, 0x71, 0xFF, 0xFF});	// Verified
		opcodeMap.put("and", new int[]{0xFF, 0x29, 0x25, 0x35, 0xFF, 0x2D, 0x3D, 0x39, 0xFF, 0x21, 0x31, 0xFF, 0xFF});	// Verified
		opcodeMap.put("asl", new int[]{0x0A, 0xFF, 0x06, 0x16, 0xFF, 0x0E, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("bcc", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x90, 0xFF});	// Verified
		opcodeMap.put("bcs", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xB0, 0xFF});	// Verified
		opcodeMap.put("beq", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xFF});	// Verified
		opcodeMap.put("bit", new int[]{0xFF, 0xFF, 0x24, 0xFF, 0xFF, 0x2C, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("bmi", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x30, 0xFF});	// Verified
		opcodeMap.put("bne", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xD0, 0xFF});	// Verified

		opcodeMap.put("bpl", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0xFF});	// Verified
		opcodeMap.put("brk", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00});	// Verified
		opcodeMap.put("bvc", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x50, 0xFF});	// Verified
		opcodeMap.put("bvs", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x70, 0xFF});	// Verified
		opcodeMap.put("clc", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x18});	// Verified
		opcodeMap.put("cld", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xD8});	// Verified
		opcodeMap.put("cli", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x58});	// Verified
		opcodeMap.put("clv", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xB8});	// Verified
		opcodeMap.put("cmp", new int[]{0xFF, 0xC9, 0xC5, 0xD5, 0xFF, 0xCD, 0xDD, 0xD9, 0xFF, 0xC1, 0xD1, 0xFF, 0xFF});	// Verified
		opcodeMap.put("cpx", new int[]{0xFF, 0xE0, 0xE4, 0xFF, 0xFF, 0xEC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("cpy", new int[]{0xFF, 0xC0, 0xC4, 0xFF, 0xFF, 0xCC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("dec", new int[]{0xFF, 0xFF, 0xC6, 0xD6, 0xFF, 0xCE, 0xDE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified

		opcodeMap.put("dex", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCA});	// Verified
		opcodeMap.put("dey", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x88});	// Verified
		opcodeMap.put("eor", new int[]{0xFF, 0x49, 0x45, 0x55, 0xFF, 0x4D, 0x5D, 0x59, 0xFF, 0x41, 0x51, 0xFF, 0xFF});	// Verified
		opcodeMap.put("inc", new int[]{0xFF, 0xFF, 0xE6, 0xF6, 0xFF, 0xEE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("inx", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE8});	// Verified
		opcodeMap.put("iny", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC8});	// Verified
		opcodeMap.put("jmp", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x4C, 0xFF, 0xFF, 0x6C, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("jsr", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x20, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("lda", new int[]{0xFF, 0xA9, 0xA5, 0xB5, 0xFF, 0xAD, 0xBD, 0xB9, 0xFF, 0xA1, 0xB1, 0xFF, 0xFF});	// Verified
		opcodeMap.put("ldx", new int[]{0xFF, 0xA2, 0xA6, 0xFF, 0xB6, 0xAE, 0xFF, 0xBE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("ldy", new int[]{0xFF, 0xA0, 0xA4, 0xB4, 0xFF, 0xAC, 0xBC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("lsr", new int[]{0x4A, 0xFF, 0x46, 0x56, 0xFF, 0x4E, 0x5E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified

		opcodeMap.put("nop", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xEA});	// Verified
		opcodeMap.put("ora", new int[]{0xFF, 0x09, 0x05, 0x15, 0xFF, 0x0D, 0x1D, 0x19, 0xFF, 0x01, 0x11, 0xFF, 0xFF});	// Verified
		opcodeMap.put("pha", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x48});	// Verified
		opcodeMap.put("php", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x08});	// Verified
		opcodeMap.put("pla", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x68});	// Verified
		opcodeMap.put("plp", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x28});	// Verified
		opcodeMap.put("rol", new int[]{0x2A, 0xFF, 0x26, 0x36, 0xFF, 0x2E, 0x3E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("ror", new int[]{0x6A, 0xFF, 0x66, 0x76, 0xFF, 0x6E, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("rti", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x40});	// Verified
		opcodeMap.put("rts", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x60});	// Verified
		opcodeMap.put("sbc", new int[]{0xFF, 0xE9, 0xE5, 0xF5, 0xFF, 0xED, 0xFD, 0xF9, 0xFF, 0xE1, 0xF1, 0xFF, 0xFF});	// Verified
		opcodeMap.put("sec", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x38});	// Verified

		opcodeMap.put("sed", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8});	// Verified
		opcodeMap.put("sei", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x78});	// Verified
		opcodeMap.put("sta", new int[]{0xFF, 0xFF, 0x85, 0x95, 0xFF, 0x8D, 0x9D, 0x99, 0xFF, 0x81, 0x91, 0xFF, 0xFF});	// Verified
		opcodeMap.put("stx", new int[]{0xFF, 0xFF, 0x86, 0xFF, 0x96, 0x8E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("sty", new int[]{0xFF, 0xFF, 0x84, 0x94, 0xFF, 0x8C, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF});	// Verified
		opcodeMap.put("tax", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAA});	// Verified
		opcodeMap.put("tay", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xA8});	// Verified
		opcodeMap.put("tsx", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBA});	// Verified
		opcodeMap.put("txa", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x8A});	// Verified
		opcodeMap.put("txs", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x9A});	// Verified
		opcodeMap.put("tya", new int[]{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x98});	// Verified
		// Accumulator - Immediate - Zero Page - Zero Page,x - Zero Page,y - Absolute - Absolute,X - Absolute,Y - Indirect - Indirect,X - Indirect,Y - Relative - Implied

		this.iNES = iNES;											// Store the 16 byte iNES header
		ROM = new byte[ROMSize()];									// Create array that holds the data that will go into the ROM
		for (int i = 0; i < ROM.length; i++) ROM[i] = (byte)0xFF;	// Fill the ROM w/ 0xFF

		createROM();												// Create the ROM
		writeROM();													// Write out the NES ROM
		
		source.delete();											// Delete unneeded temp source file
	}