home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / asmutl / strlib.lbr / STRLIB.DZC / STRLIB.DOC
Encoding:
Text File  |  1987-10-27  |  2.5 KB  |  72 lines

  1. NAME:   STRLIB.REL
  2. DATE:   JULY 21, 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 String manipulation.
  7. They are:
  8.  
  9. NAME                     PURPOSE
  10.  
  11. STRCMP    Compare to strings.
  12.  
  13. CONCAT    Concatenate 2 strings.
  14.  
  15. POS       Find the position of a substring in a string.
  16.  
  17. COPY      Copy a substring from a string.
  18.  
  19. DELETE    Delete a substring from a string.
  20.  
  21. INSERT    Insert a substring into a string.
  22.  
  23.  
  24.      These routines are set up for use with the Microsoft assembler and
  25. linking loader.  To call them in a program you must reference the name
  26. as an external and then simply do a call to the subroutine.  For
  27. example,...
  28.  
  29.      EXT  BN2HEX
  30.        *
  31.        *
  32.        *
  33.        *
  34.      CALL BN2HEX
  35.        *
  36.        *
  37.      ETCETERA
  38.  
  39.      To use them with the loader, go:
  40.  
  41. * MPDLIB,YOURPROGRAM,/G
  42.      (Or whichever command line toggle you like)
  43.  
  44.      All of these routines have been tested and debugged.  I am making
  45. them available because they aren't available on a disk as far as I know.
  46. To use this stuff you are going to have to buy the man's book.  If you
  47. use these programs commercially then shame on you.  These are for
  48. intellectual exercise only.
  49.  
  50.      In order to use these subroutines it is to your advantage to sit
  51. down and code a routine to test run them that you may really grok them
  52. in full.  I suggest that you hunt down a copy of ZPMMAC.MAC which is a
  53. library of Z80 macros adapted from "Mastering CP/M" by Alan Miller.
  54. These macros or similar ones will allow you to do console I/O on any
  55. standard CP/M system... among other things.  Rather than upload all the
  56. subroutines in one gross big file, I am uploading several smaller files.
  57. So far these are:
  58.  
  59. CODELIB.REL              CODE CONVERSION ROUTINES
  60. MPBLIB.REL               MULTI-PRECISION BINARY MATH
  61. MPDLIB.REL               MULTI-PRECISION DECIMAL MATH
  62. ARRAYLIB.REL             ARRAY ROUTINES
  63. BIGLIB.REL               EVERYTHING ELSE IN THE BOOK
  64. STRLIB.REL               STRING HANDLING LIBRARY
  65.  
  66.                                    enjoy,
  67.  
  68.                                    Martin Kilgore
  69.                                    c/o Western States Info
  70.                                    (209) 222-2233
  71.                           (local)  (213) 257-4594
  72.