home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / mpdlib.lbr / MPDLIB.DZC / MPDLIB.DOC
Text File  |  1987-10-26  |  2KB  |  70 lines

  1. Name:   MPDLIB.REL
  2. Date:   JUNE 30, 1984
  3.  
  4.      This library module contains four subroutines which are further
  5. described in Z80 Assembly Language Subroutines, by Leventhal & Saville,
  6. Osborne/McGraw-Hill.  These routines are for doing multiple precision
  7. decimal arithmetic.  They are:
  8.  
  9. NAME                     PURPOSE
  10.  
  11. MPDADD    Add 2 arrays of decimal bytes.
  12.  
  13. MPDSUB    Subtract 2 arrays of decimal bytes.
  14.  
  15. MPDMUL    Multiply 2 arrays of decimal bytes.
  16.  
  17. MPDDIV    Divide 2 arrays of decimal bytes
  18.  
  19.  
  20.  
  21.      These routines are set up for use with the Microsoft assembler and
  22. linking loader.  To call them in a program you must reference the name
  23. as an external and then simply do a call to the subroutine.  For
  24. example,...
  25.  
  26.      EXT  BN2HEX
  27.        *
  28.        *
  29.        *
  30.        *
  31.      CALL BN2HEX
  32.        *
  33.        *
  34.      ETCETERA
  35.  
  36.      To use them with the loader, go:
  37.  
  38. * MPDLIB,YOURPROGRAM,/G
  39.      (Or whichever command line toggle you like)
  40.  
  41.  
  42.      All of these routines have been tested and debugged.  I am making
  43. them available because they aren't available on a disk as far as I know.
  44. To use this stuff you are going to have to buy the man's book.  If you
  45. use these programs commercially then shame on you.  These are for
  46. intellectual exercise only
  47.  
  48.      In order to use these subroutines it is to your advantage to sit
  49. down and code a routine to test run them that you may really grok them
  50. in full.  I suggest that you hunt down a copy of ZPMMAC.MAC which is a
  51. library of Z80 macros adapted from "Mastering CP/M" by Alan Miller.
  52. These macros or similar ones will allow you to do console I/O on any
  53. standard CP/M system... among other things.  Rather than upload all the
  54. subroutines in one gross big file, I am uploading several smaller files.
  55. So far these are:
  56.  
  57. CODELIB.REL              CODE CONVERSION ROUTINES
  58. MPBLIB.REL               MULTI-PRECISION BINARY MATH
  59. MPDLIB.REL               MULTI-PRECISION DECIMAL MATH
  60. ARRAYLIB.REL             ARRAY ROUTINES
  61. BIGLIB.REL               EVERYTHING ELSE IN THE BOOK
  62. STRLIB.REL               STRING HANDLING LIBRARY
  63.  
  64.                                    enjoy,
  65.  
  66.                                    Martin Kilgore
  67.                                    c/o Western States Info
  68.                                    (209) 222-2233
  69.                           (local)  (213) 257-4594
  70.