hex/byte to int conversion

Four binary bits form a hex digit, by definition.