🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3025

Re: Can a program be un-linked?

#3025
From: granville
Date: Tue, 14 Nov 1995 09:04
22 lines
1436 bytes
In article <4835cf$pg4@news.cic.net>, captain@nether.net (David Austin) writes:
> Can a modula-2 program which has been linked to become a dos.exe
> file be returned to its original state (ie plain text)
> I have an exe version of a program which was deleted, I would
> really like to get the text back.  I am usingthe Stony Brook Quickmod
> programming environment.  Also any hints on how to get a modula2 
> program to read the contents of the dos command line.
> I need to do this because I am trying to write a program which
> reads a file from the prompt like c:\echo any.txt
> how do i get the program to read the file name (any.txt in the above
> example).  Thanks if you can help with these problems (especially the 
> unlink prob).
> 
 Oh dear.. :-(
The short answer is no. You can get a text output, but it will be assembler.
If you have a companion debugger, you can often get a little bit more,
depending on where the compiler writer puts the symbolic debug info.
 IT is probably faster to re-write the code...

In TopSpeed, there is ParamStr and ParamCount, so SB should have something
similar.
 - jim granville.
Technical Details
Message-ID: <1995Nov14.220417.446@decus.org.nz>
Path: arc1-ca.pugleaf.net!decus.org.nz!granville
References: <4835cf$pg4@news.cic.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!decus.org.nz!granville
From: granville@decus.org.nz
Newsgroups: comp.lang.modula2
Subject: Re: Can a program be un-linked?
Message-ID: <1995Nov14.220417.446@decus.org.nz>
Date: 14 Nov 95 22:04:16 +1300
References: <4835cf$pg4@news.cic.net>
Organization: DECUS New Zealand