home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG025.ARK / NOTES.VAN < prev    next >
Text File  |  1984-04-29  |  2KB  |  65 lines

  1. TITLE        SECRETS OF CP/M VERSION 1.4
  2. FILENAME    SECRET14.DOC
  3. AUTHOR        Robert A. Van Valzah     4/27/78
  4.  
  5.  
  6.     M Y S T E R Y   B D O S   F U N C T I O N S
  7.  
  8. FUNC    ACTION
  9. ----    ------
  10.  28    MAKE CURRENT DRIVE READ ONLY (R/O)
  11.  
  12.  29    RETURN R/O VECTOR.  RETURNS A BYTE VALUE (IN REG A)
  13.     WITH A "1" IN BIT POSITIONS OF R/O DISKS, LEAST
  14.     SIGNIFICANT BIT CORRESPONDING TO DRIVE A.
  15.  
  16.  30    SET DIRECTORY I/O DMA ADDRESS.  INITIALLY SET TO 80H.
  17.     DISK DATA I/O CONTINUES AT THE LAST ADDRESS SET BY
  18.     FUNCTION 26.
  19.  
  20.  
  21.     B O O T   A N D   G O   M O D   F O R   C C P
  22.  
  23.     There are some dedicated CP/M applications where it
  24. would be nice if a cold start would load CP/M and then load a
  25. transient and give it control.  This could be used to make a
  26. disk which would always power up in BASIC, for instance.  This
  27. capability has been built into CP/M version 1.4.
  28.  
  29. THEORY
  30. ------
  31.     When the CCP is loaded, it checks its console input
  32. buffer to see if a command is waiting.  As supplied by Digital
  33. Research, this buffer is empty and the CCP simply signs on and
  34. prompts the user for input.  The task at hand, therefore, is to
  35. fill this buffer so its contents will be executed as a CCP
  36. command as the CCP is loaded.  Assuming you have SID and desire
  37. a command length of <=16 characters, this is quite simple:
  38.  
  39.    1)    Load an image of your operating system into low memory
  40.     (ready for SYSGEN).  EX:  SID CPMnn.COM
  41.  
  42.    2)    Type "I" followed by the command line as you like CCP
  43.     to execute it.  EX:  ISTAT.COM
  44.  
  45.    3)    Type    M80,90,987
  46.  
  47.    4)    Boot and SYSGEN a disk in the normal manner.
  48.  
  49.     The disk will now boot and execute the command typed
  50. in step 2 above.
  51.  
  52.     If you don't have SID or desire a command line longer
  53. than 16 characters:
  54.  
  55.    1)    Perform step 1 above (use DDT if needed).
  56.  
  57.    2)    Patch the length of your command into location 987H.
  58.  
  59.    3)    Patch the ASCII of the command into memory starting at
  60.     location 988H, following it with the Digital Research
  61.     copyright message "COPYRIGHT (C) 1978, DIGITAL
  62.     RESEARCH  ".
  63.  
  64.    4)    Perform step 4 above.
  65.