if (hexC >= '0' && hexC <= '9') {
                port.readChar();
                nb = nb * 16 + hexC.charCodeAt(0) - '0'.charCodeAt(0);
            } else if (hexC >= 'a' && hexC <= 'f') {
                port.readChar();