home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / y.lbr / ZSLIB7.HZP / ZSLIB7.HLP
Encoding:
Text File  |  1991-07-20  |  2.8 KB  |  88 lines

  1.  BCD to Julian Date                   - BCD2JUL
  2.  Binary to Julian Date                - BIN2JUL
  3.  Julian Date to Binary                - JUL2BIN
  4.  Binary Number to BCD                 - BINBCD
  5.  BCD to Binary Digit                  - JBCD2BN
  6.  BCD date to Day of Week              - WDAY0
  7.  Test BCD Date and Time for Validity  - ISBCDD, ISBCDT
  8.  Test Byte for BCD                    - ISBCD
  9. :
  10. BCD2JUL - BCD date to Julian date conversion.
  11.  
  12.   ENTER: HL = address of date as BCD yy mm dd.
  13.   EXIT:  HL = Julian date in binary (1/1/1978 = 1).
  14.   USES:  HL
  15.  
  16. Usage: If the year is less than 1978, this routine wraps to the next 
  17. century, covering dates from 1/1/1978 through 12/31/2077.
  18. :
  19. BIN2JUL - Binary date to Julian date conversion.
  20.  
  21.   ENTER: HL = address of date as binary yy mm dd.
  22.   EXIT:  HL = Julian date in binary (1/1/78 = 1).
  23.   USES:  HL
  24.  
  25. Usage: If the year is less than 1978, this routine wraps to the next 
  26. century, covering dates from 1/1/1978 through 12/31/2077.
  27. :
  28. JUL2BIN - Julian date to binary date conversion.
  29.  
  30.   ENTER: HL = Days since 12/31/1977 (Julian date).
  31.   EXIT:  B = Binary month (1=Jan ...),
  32.          C = Binary year (78 ...),
  33.          L = Binary day (1..31),
  34.          A = L
  35.   USES:  AF, BC, HL
  36. :
  37. BINBCD - Convert binary number to BCD.
  38.  
  39.   ENTER: A = binary number.
  40.   EXIT:  A = BCD number.
  41.   USES:  AF
  42. :
  43. JBCD2BN - BCD byte to binary digit.
  44.  
  45.   ENTER: A = number in BCD.
  46.   EXIT:  A = binary number.
  47.   USES:  AF, DE
  48. :
  49. WDAY0 - BCD date to day of week conversion.
  50.  
  51.   ENTER: HL = address of date as BCD yy mm dd.
  52.   EXIT:  A = 0..6 representing day of week:
  53.              0 = Saturday,
  54.              1 = Sunday,
  55.              2 = Monday,
  56.              3 = Tuesday,
  57.              4 = Wednesday,
  58.              5 = Thursday,
  59.              6 = Friday.
  60.   USES:  AF
  61. :
  62. ISBCDD - Test BCD date and time for validity.
  63.  
  64.   ENTER: HL = address of possible BCD yy mm dd hh mm.
  65.   EXIT:  Zero flag set (Z) if date and time ok:
  66.            A = 2Ah ("*") if wildcard characters encountered,
  67.            A = 0 if no wildcard characters encountered,
  68.          Zero flag reset (NZ) and A = 0FFh if date and time invalid.
  69.   USES:  AF
  70.  
  71. ISBCDT - Test BCD date and time for validity.
  72.  
  73.   ENTER: HL = address of possible BCD yy mm dd hh mm ss.
  74.   EXIT:  Zero flag set (Z) and A = 0 if date and time ok,
  75.          Zero flag reset (NZ) and A = 0FFh if date and time invalid.
  76.   USES:  AF
  77.  
  78. Usage: ISBCDD checks only the first five BCD bytes of date string (not 
  79. seconds).  ISBCDT checks all six bytes.  ISBCDT does not accept wildcard 
  80. characters.
  81. :
  82. ISBCD - Test if byte is valid BCD.
  83.  
  84.   ENTER: A = byte to test
  85.   EXIT:  Carry set (C) if byte is BCD,
  86.          Carry reset (NC) if byte is invalid.
  87.   USES:  AF
  88.