home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / decus / RB139 / mail20r.lzh / MCOMPILE.DOC < prev    next >
Text File  |  1988-09-10  |  2KB  |  58 lines

  1. SOURCE CODE FILES
  2.  
  3. The program is written in Turbo Pascal, version 2.0 for CP/M and
  4. 3.0 for MS/PC-DOS.  Version 3.0 does not use BCD reals or the
  5. 8087 support.  The program uses the Turbo Access routines found
  6. in the Turbo Database Toolbox.  Most of the procedures are
  7. overlayed, so the object code is in two files, MAIL.COM, the
  8. root, and MAIL.000, the overlay file.
  9.  
  10. The program source code is contained in the following files:
  11.  
  12.      MAIL.PAS            The main program
  13.      ACCESS.BOX, GETKEY.BOX,    Turbo Access routines -- not
  14.      ADDKEY.BOX, DELKEY.BOX    included with the program --
  15.                 you must buy them from Borland
  16.                 International
  17.      IO20.INC            Formatted input/output routines
  18.      MAILDATE.INC        Reading and writing dates
  19.      MAILGLOB.INC        Global declarations
  20.      MROOT1.INC, MROOT2.INC    Miscellaneous routines that are
  21.                 called by more than one procedure
  22.      MINIT.INC            Routines to initialize the
  23.                 program when it is first started     
  24.      MSETUP.INC            The Set-Up menu
  25.      MADDETC.INC        Add, change, delete a name and
  26.                 record contributions
  27.      MPRINT.INC            Print list of names and labels
  28.      MAILMERG.INC        Create mailmerge file
  29.  
  30. TO COMPILE FOR CP/M
  31.  
  32. In file IO20.INC, comment out the version of procedure KEYIN that
  33. is for MS/PC-DOS and un-comment the version that is for CP/M,
  34. specifically the Kaypro.  In file MINIT.INC, make sure that the
  35. two calls to the BDOS procedure are NOT commented out.  These are
  36. the only places the source code differs between CP/M and
  37. MS/PC-DOS.  This is one of the many reasons I like Turbo Pascal
  38. so much -- the code is very portable.
  39.  
  40. Compile to a COM file with the End address set to $D440.  This
  41. leaves plenty of room for different size operating systems.
  42.  
  43. TO COMPILE FOR MS/PC-DOS
  44.  
  45. In file IO20.INC, comment out the version of procedure KEYIN that
  46. is for CP/M and un-comment the version that is for MS/PC-DOS.  In
  47. file MINIT.INC, make sure that the two calls to the BDOS
  48. procedure are commented out (they are plainly marked).  These are
  49. the only places the source code differs between CP/M and
  50. MS/PC-DOS.
  51.  
  52. You probably do not have to overlay the program for MS/PC-DOS,
  53. although I have done so just to ensure source code portability. 
  54. The overlay procedures are in files MINIT.INC, MSETUP.INC,
  55. MADDETC.INC, MPRINT.INC, and MAILMERG.INC.  Search for the
  56. keyword "overlay" and delete it before compiling.
  57. the
  58. two calls to t