Changeset 8331 for trunk/tools
- Timestamp:
- Apr 30, 2002, 6:17:20 AM (23 years ago)
- 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:02bird Exp $1 /* $Id: MapSym.cmd,v 1.3 2002-04-30 04:17:20 bird Exp $ 2 2 * 3 3 * Helper script for calling MAPSYM.EXE. … … 540 540 Parse Value watcomText With seg ':' ofs 10 . 16 declaration 541 541 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!!! */ 544 544 545 545 /*--- Haven't done the work to xlate operator symbols - skip the line. */ … … 573 573 call lineout outfile ,' ' || seg || ':' || ofs || ' ' || declaration 574 574 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 575 584 End; /* End While through symbol section, end of input file. */ 585 576 586 call stream outfile, 'c', 'close'; 577 587 call stream mapfile, 'c', 'close';
Note:
See TracChangeset
for help on using the changeset viewer.