lib/mapfiles/map-file-vs.js
/**
     * Try to match information about the address where a symbol is
     *
     * @param {string} line
     */
Try to match information about the address where a symbol is
@param {string} line
Try to match information about the address where a symbol is @param { string } line
tryReadingNamedAddress(line) {
        let symbolObject = false;
        const matches = line.match(this.regexVsNames);
        if (matches && matches.length >= 7 && matches[4] !== '') {
            const addressWithOffset = parseInt(matches[4], 16);
            symbolObject = {
                segment: matches[1],
                addressWithoutOffset: parseInt(matches[2], 16),
                addressInt: addressWithOffset,
                address: addressWithOffset.toString(16),
                displayName: matches[3],
                unitName: matches[6],
                isStaticSymbol: false,
            };
            this.namedAddresses.push(symbolObject);
            this.setSegmentOffset(symbolObject.segment, symbolObject.addressInt - symbolObject.addressWithoutOffset);
            const segment = this.getSegmentInfoAddressWithoutOffsetIsIn(
                symbolObject.segment,
                symbolObject.addressWithoutOffset,
            );
            if (segment && !segment.unitName) {
                segment.unitName = matches[6];
            }
        }
    }
tryReadingNamedAddress ( line ) { let symbolObject = false ; const matches = line . match ( this . regexVsNames ) ; if ( matches && matches . length >= 7 && matches [ 4 ] !== '' ) { const addressWithOffset = parseInt ( matches [ 4 ] , 16 ) ; symbolObject = { segment : matches [ 1 ] , addressWithoutOffset : parseInt ( matches [ 2 ] , 16 ) , addressInt : addressWithOffset , address : addressWithOffset . toString ( 16 ) , displayName : matches [ 3 ] , unitName : matches [ 6 ] , isStaticSymbol : false , } ; this . namedAddresses . push ( symbolObject ) ; this . setSegmentOffset ( symbolObject . segment , symbolObject . addressInt - symbolObject . addressWithoutOffset ) ; const segment = this . getSegmentInfoAddressWithoutOffsetIsIn ( symbolObject . segment , symbolObject . addressWithoutOffset , ) ; if ( segment && ! segment . unitName ) { segment . unitName = matches [ 6 ] ; } } }
Try to match information about the address where a symbol is
 @param {string} line
Try to match information about the address where a symbol is @param { string } line