home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / USCX / DOSUT-08.ZIP / RESCMD.DOC < prev    next >
Text File  |  1983-12-10  |  5KB  |  79 lines

  1.                           RESIDENT COMMAND INTERPRETER
  2.                                   John Chapman
  3.                                844 S. Madison St. 
  4.                             Hinsdale, Illinois 60521
  5.                              COMPUSERV ID 70205,1217
  6.         DISCLAIMER 
  7.         This  modification is provided without warranty of any kind.  The 
  8.         author  assumes no liability for failure of this code to  perform 
  9.         in  any  environment.  The  user is  completely  responsible  for 
  10.         determining   the  applicability  of  this  modification   to   a 
  11.         particular environment.  
  12.         LIMITATIONS 
  13.         This modification causes the transient portion of COMMAND.COM  to 
  14.         be  made resident at system IPL.   Re-booting the system with  an 
  15.         unmodified   COMMAND.COM   is  the  only  way  to   remove   this 
  16.         modification.  This  modification  alters  the  starting  segment 
  17.         [paragraph] address available to programs, lowering the amount of 
  18.         storage  available  by 4288 bytes [for PC/DOS 1.1 with  a  normal 
  19.         load   segment  address  of  02C1].    The  starting  segment  of 
  20.         COMMAND.COM can be found at location 0000:9E,  and should display 
  21.         [debug] as       0000:009E 2C 01
  22.         CONTENTS
  23.         This   modification,   supplied  as  a  BASIC   program    called 
  24.         "RESCMD.COM"  (Or  CLOCKCMD.BAS for realtime clock users)  which 
  25.         will read in an UNMODIFIED DOS 1.1 COMMAND.COM and produce a  new 
  26.         file, "COMMAND.CMD" which has all the mods installed. This set of 
  27.         modifications  alters  the  IBM  Personal  Computer  DOS  command 
  28.         interpreter  (COMMAND.COM)  to remain entirely  resident,  rather 
  29.         than  be half resident and half transient.  The whole purpose  of 
  30.         this  modification is to suppress 99% of the occurrances  of  the 
  31.         refresh   of  the  transient  portion.   This  will  remove   the 
  32.         requirement  to  ALWAYS have a disk with a valid  COMMAND.COM  in 
  33.         drive  A.  This  change has been especially useful with  multiple 
  34.         DISKCOPY  type activities,  and with those  application  packages 
  35.         which  use all of memory,  including the top 4880 bytes where the 
  36.         transient COMMAND.COM resides. 
  37.         The  modification  merely omits the relocation of  the  transient 
  38.         portion of COMMAND.COM, and sets the first free paragraph address 
  39.         to  be  the area behind the transient routines,  rather than  the 
  40.         small "resident" portion.
  41.                                         1
  42.  
  43.         PC/DOS Initialization Overview
  44.         The  IBM  Personal  Computer DOS is brought in from disk  by  the 
  45.         bootstrap loader read from track 0 of drive A by the ROM routines
  46.         after the initial hardware tests are performed at  power-on,  and 
  47.         subsequently  when  ALT-CTRL-DEL re-boot is  requested.  In  both 
  48.         cases, the following sequence occurs:
  49.              1) The "boot" program is read from track 0.
  50.              2) It reads IBMBIO.COM  from  a  specific location
  51.              3) IBMBIO is given control and builds the environmental
  52.                 control blocks, initializes peripherals, and then
  53.                 reads IBMDOS.COM from its specific location on disk
  54.              4) IBMDOS is passed control. After initializing the 
  55.                 remainder of the operating system, IBMDOS loads
  56.                 the COMMAND.COM file [the command interpreter], and
  57.                 passes it control
  58.              5) The command interpreter immediately relocates all of the
  59.                 main line code for command prompting,  parsing,  and  the 
  60.                 code which supports the resident commands to the high end 
  61.                 of memory, where it can be more easily destroyed by 
  62.                 wandering programs.
  63.              6) Resident COMMAND.COM will now [pretend to] detect a
  64.                 checksum error in the transient portion of itself,
  65.                 immediately causing a Re-load from disk, thus setting
  66.                 the tone for a long and tedious interaction, interrupted
  67.                 frequently by disk I/O and requests for a DOS disk
  68.                 in the default drive.
  69.         REAL-TIME CLOCK VERSION
  70.         An   alternate  version  of  the  modification  is  supplied   as 
  71.         "CLOCKCMD.BAS".   This version REQUIRES THE PRESENCE OF A  CLOCK. 
  72.         The  DOS  DATE  and TIME commands ARE DISABLED by  this  version, 
  73.         requiring the user to employ the software provided with the clock 
  74.         card  to access date and time.   The space formerly used by  DATE 
  75.         and time is reused for three new RESIDENT commands,  BEEP,  PAGE, 
  76.         and CLS.  PAGE causes the printer (LPT1:) to skip to top-of form. 
  77.         CLS clears the active display.  BEEP causes a warbling tone to be 
  78.         produced. 
  79.