private boolean branch_format() {
		
		int rs, rt;
		
		try {
			rs = register_file.get_register(inst.get_rs());
			rt = register_file.get_register(inst.get_rt());
			register_file.validate_index(inst.get_rd());
		} catch (RegisterOutOfBoundsException e) {
			e.printStackTrace();
			return false;
		}
		
		switch (inst.get_type()){
		case beq :
			if(rs == rt)
				simulator.set_alu_zero();
			else simulator.reset_alu_zero();
			break;
		case bne: 
			if(rs != rt)
				simulator.set_alu_zero();
			else simulator.reset_alu_zero();
			break;
		}
		
		return true;

	}