Changeset 9166 for trunk/tools


Ignore:
Timestamp:
Aug 29, 2002, 12:04:10 PM (23 years ago)
Author:
bird
Message:

Bugfixes for 16-bit (NE) wlink map files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/MapSym.cmd

    r9110 r9166  
    1 /* $Id: MapSym.cmd,v 1.7 2002-08-24 04:33:52 bird Exp $
     1/* $Id: MapSym.cmd,v 1.8 2002-08-29 10:04:10 bird Exp $
    22 *
    33 * Helper script for calling MAPSYM.EXE.
     
    1212 * Configuration.
    1313 */
    14 sWatcom = ';wat11c;wat11;watcom;wat11c-16;wat11-16;'
    15 sIBMOld = ';vac3xx;vac365;vac308;link386;emx;emxpgcc;mscv6;mscv6-16;ibmold;'
     14sWatcom = ';wat11c;wat11;watcom;wat11c-16;wat11-16;wlink;wlink.exe;'
     15sIBMOld = ';vac3xx;vac365;vac308;emx;emxpgcc;mscv6;mscv6-16;ilink;ilink.exe;link386;link386.exe;link;link.exe;ibmold;'
    1616sVAC40  = ';vac40;'
    17 sLinkers= strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';'
     17sLinkers = strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';'
    1818/* look for 4os2 */
    1919f4OS2   = 0;
     
    125125    when (sLinker = 'WATCOM') then
    126126    do
    127         /*sTmpMapFile = watos2.map*/
     127        /*sTmpMapFile = 'watos2.map'*/
    128128        rc = wat2map(sMapFile, sTmpMapFile);
    129129        if (rc <> 0) then
     
    295295                        if (length(sSegName) < 22) then sSegName = left(sSegName, 22, ' ');
    296296                        call lineout sOutFile, ' '||strip(iSeg)':'iSegOffset right(DecToHex(cbSegment), 9, '0'),
    297                                      ||'H '||sSegName||' '||strip(sSegClass);
     297                                     ||'H     '||sSegName||' '||strip(sSegClass);
    298298                        sSegment = '';
    299299                        cbSegment = 0;
     
    591591      Parse Value watcomText With ofs 9 . 16 declaration
    592592   end
     593   else
     594   do  /* kso: more workarounds */
     595       if (is_Hex(seg) & length(ofs) > 4 & \is_Hex(substr(ofs,5,1))) then
     596           ofs = '0000'||left(ofs,4);
     597   end
    593598   /*say ofs  '-'declaration*/
    594599   is_Adress = (is_Hex(seg) = 1) & (is_Hex(ofs) = 1)
Note: See TracChangeset for help on using the changeset viewer.