Changeset 8331 for trunk/tools


Ignore:
Timestamp:
Apr 30, 2002, 6:17:20 AM (23 years ago)
Author:
bird
Message:

Watcom fixes.

File:
1 edited

Legend:

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

    r8330 r8331  
    1 /* $Id: MapSym.cmd,v 1.2 2002-04-30 03:55:02 bird Exp $
     1/* $Id: MapSym.cmd,v 1.3 2002-04-30 04:17:20 bird Exp $
    22 *
    33 * Helper script for calling MAPSYM.EXE.
     
    540540   Parse Value watcomText With seg ':' ofs 10 . 16 declaration
    541541   is_Adress = (is_Hex(seg) = 1) & (is_Hex(ofs) = 1)
    542    If (is_Adress = 1) Then Do;
    543       ofs = substr(watcomText, pos(':', watcomText)+1, 8); /* bird bird bird fixed!!! */
     542   If ((is_Adress = 1) & (seg <> '0000')) Then Do;          /* bird: skip symbols with segment 0. (__DOSseg__) */
     543      ofs = substr(watcomText, pos(':', watcomText)+1, 8);  /* bird bird bird fixed!!! */
    544544
    545545      /*--- Haven't done the work to xlate operator symbols - skip the line. */
     
    573573      call lineout outfile ,' ' || seg || ':' || ofs || '       ' || declaration
    574574   End;
     575
     576   /* check for entry point, if found we add it and quit. */
     577   if (pos('Entry point address', watcomText) > 0) then
     578   do
     579       parse var watcomText 'Entry point address:' sEntryPoint
     580       call lineout outfile, ''
     581       call lineout outfile, 'Program entry point at' strip(sEntryPoint)
     582       leave;
     583   end
    575584End; /* End While through symbol section, end of input file. */
     585
    576586call stream outfile, 'c', 'close';
    577587call stream mapfile, 'c', 'close';
Note: See TracChangeset for help on using the changeset viewer.