implement bitAnd, getByte, logicalShift