<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 31 Jan 1990 10:53:10 PST
From   : Bridger Mitchell <bridger%rcc@rand.org>
Subject: determining program name under CP/M PLUS

  (Georg Wittig) mcsun!unido!gmdzi!wittig@uunet.uu.net asked:

>> Does there exist a standard way to determine the name of the current
>> program from within a program under CP/M PLUS?

If you are running Z3PLUS (the Z-System version for CP/M 3) there is a
standard library function in the assembly-language Z3LIB package that
will return the name of the current program.  This, and the SYSLIB
package, are a great aid in applications programming.

If you are running only CP/M 3, the system saves the last command line
in a buffer in a CP/M 3 RSX.  In principle this can be located from
flags and pointers in the System Control Block; there is no system call
for that purpose, and I don't know of a canned routine to do it.
Perhaps someone else does.

The CP/M 3 archives on simtel20 include a file that has more
information about the SCB than is found in the CP/M 3 manuals.  It's
in a library (whose name I have forgotten) devoted to a z80
replacement for the stock CP/M 3 CCP.COM, developed in Canada before
Z3PLUS was available.

-- bridger mitchell

<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>