======= IMP2Z11 ======= An IMP-to-ZCPR shell escape program for IMP in a ZCPR3 or v3.3 environment, adapted by Fred Haines from Bruce Morgen and Jay Sage's MEX+2Z IMP2Z gives the IMP command 'CPM' a capability like the SHELL escape command of the 16-bit version of MEX+. To use IMP2Z: 1) Set the real IMP.COM file so that it will not be invoked by a command of the form "IMP". This can be done by renaming it (e.g., to REALIMP) or by putting it in a directory that is not along the search path. 2) Create a standalone or ARUNZ alias called IMP with a script such as either of the following: REALIMP;IMP2Z (for renamed IMP) DIR:IMP;IMP2Z (if IMP in DIR:) If you exit from IMP with the CPM command, IMP2Z runs and looks for the IMP command line left in memory. It scans for the CPM command, takes anything in the command after that, and puts it into the ZCPR3 command line with "IMP" after it so that the IMP alias will be run again after the other commands are finished. Thus, if you leave IMP with the command "CPM CRUNCH FN.FT", the file will be crunched and then you will return to IMP. If you are using an ARUNZ alias (or you want to use a name other than IMP), you can patch a string at the beginning of IMP2Z. Just make sure that you leave at least on byte of 00 after the command line. Replacing the string "IMP" with "ARUNZ IMP" or "CMDRUN IMP" will speed up command processing, as will the string with a leading space, " IMP", if you are using ZCPR v3.3. I have included two COM files in this library, one for IMP v2.44, the other for v2.45. The source file will assemble for IMP v2.44 if the V255 equate is set NO, for v2.45 if set YES. ====== ZOSIMP ====== This is a program that doesn't do a whole lot - it just changes several instances of the words CPM and CP/M in IMP.COM to ZOS - for Z Operating System. I know we don't have ZOS yet, but many of us don't have CPM any more either, and it's odd to have an exit command CPM to get out to a ZCPR system. This ZEX file will change both IMP.COM and IMP2Z.COM to use the word ZOS as an exit command in place of CPM. A word of caution: IMP is copyrighted by Irv Hoff, and you must not distribute any patched version of the program. You can apply this or any other patch to IMP for your personal use, and you can distribute this patch file freely, but please respect the author of IMP's copyright. This file creates two new programs, ZOSIMP.COM and ZOSIMP2Z.COM. You can either rename these or create a new alias or command line in ALIAS.CMD: $Zzosimp.com;zosimp2z The "$Z" is the ARUNZ (CMDRUN) parameter for allowing the command line to be recursive. If you are using an alias rather than ARUNZ this won't work, but you can avoid the problem by not calling IMP from inside ZOSIMP, which is a pretty silly thing to do anyway. Put IMP.COM, IMP2Z.COM, and this file in the same directory, make sure you have Eric Gans's FINREP25.COM and ZEX.COM somewhere in the command search path, and issue this command: zex zosimp Several seconds later you'll have two new files in the directory, ZOSIMP.COM and ZOSIMP2Z.COM. That's all there is to it. You must however make the alterations to both IMP and IMP2Z if you wish the latter to work properly, as you can't have one of them using a ZOS command while the other is expecting to see a CPM command. Fred Haines Glendale LITTERA QBBS RCPM (818) 956-6164