[net.lang.pascal] Exit & Stay Resident In Pascal

nadji@uscvax.UUCP (Behzad Nadji) (07/04/85)

I posted this last month and I received several mailers expressing interest
in the answers I got. Unfortunately I didn't get any. Since I've seen some
interest on this subject, I think I can get away with posting it once more:


1) Is it possible to force a software written in a high-level language (say
   Turbo Pascal) exit but stay resident using appropriate MsDos function
   calls as is normally done using assembly language?

2) Along the same lines, is it possible to make that software an extension 
   of COMMAND.COM. That is, can one write a utility in Turbo and attach it
   to COMMAND.COM?

   What is the procedure? Drawbacks besides the obvious waste of memory?  
   Any hints, pointers or small examples are appreciated.

                              ARPA:     nadji%usc-cse@csnet-relay.arpa
                              CSNET:    nadji@usc-cse.csnet
                              TEL:      (213) 743 - 8079
                              US MAIL:  B. Nadji, EE-SYS, SAL339, USC
                                        Los Angels, CA 90089-0781