public static String toBinaryString(byte byteval) {
		StringBuilder sb = new StringBuilder("00000000");
		for (int bit = 0; bit < 8; bit++) {
			if (((byteval >> bit) & 1) > 0) {
				sb.setCharAt(7 - bit, '1');
			}
		}

		return sb.toString();
	}
Converts the given byte to a binary string.

@param byteval
@return
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/util/InstructionSearchUtils.java