bridger%rcc@RAND.ORG (Bridger Mitchell) (02/01/90)
(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
bridger%rcc@RAND.ORG (Bridger Mitchell) (02/01/90)
(Georg Wittig) mcsun >> 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, , N 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 routinPerhaps 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 #! rnews 1