home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol089 / syslib2.hlp < prev    next >
Text File  |  1985-02-09  |  4KB  |  88 lines

  1. :Numeric String Evaluation Routines -- EVAL, EVAL16, EVAL10, EVAL8, EVAL2
  2.      Routine Name:  EVAL
  3.      Function║
  4.           Thi≤á routinσ convert≤ thσ characte≥ strinτ pointeΣá t∩ ì
  5. b∙á H╠á int∩ thσ 16-bi⌠ binar∙ numbe≥ representeΣá b∙á it«á  EVA╠ ì
  6. perform≤á thσá conversioεá unti∞ ß non-hexadecima∞á characte≥á i≤ ì
  7. encountered¼ a⌠ whicΦ timσ i⌠ look≤ a⌠ thσ las⌠ characte≥ anΣ thσ ì
  8. previou≤á characte≥ t∩ determinσ iµ thσ strinτ i≤ representinτá ß ì
  9. binary¼á octal¼á decimal¼á o≥ hexadecima∞ number«á  Inpu⌠á strinτ ì
  10. character≤á ma∙ bσ upper- o≥ lower-case«á  ValiΣ format≤ fo≥á thσ ì
  11. inpu⌠ strinτ arσ --
  12.           bbbbbbbbbbbbbbbbB -- b=0 or b=1; Binary string
  13.           ttttt or tttttD -- 0 <= t <= 9; Decimal string
  14.           hhhhH or hhhhX -- 0 <= h <= F; Hexadecimal string
  15.           oooooooO or oooooooQ -- 0 <= o <= 7; Octal string
  16.  
  17.  
  18.      Inputs:  HL points to the first byte of the string to convert
  19.               String is loaded in a buffer
  20.      Outputs:  HL points to next character after converted string
  21.                DE contains 16-bit value
  22.                A = E
  23.                CARR┘á Flaτá Se⌠ mean≤ aε erro≥ wa≤á encountereΣá iεá strinτ ì
  24. format
  25.      Registers Affected:  PSW, DE, HL
  26.      SYSLIB Routines Called:  CAPS, EVAL16, EVAL10, EVAL8, EVAL2
  27.      Specia∞á Erro≥ Conditions║
  28.           CARR┘á Flaτ Se⌠ indicate≤ tha⌠ aε erro≥ wa≤ encountereΣ ì
  29. iεá thσá evaluatioεá oµ thσ string╗á iµá so¼á H╠á point≤á t∩á thσ ì
  30. offendinτ character
  31.  
  32.      Routine Name:  EVAL16
  33.      Function║
  34.           EVAL1╢áá convert≤á thσá strinτá oµá ASCI╔áá hexadecima∞ ì
  35. character≤áá pointeΣá t∩á b∙á H╠á int∩á ßá 16-bi⌠á binar∙á value«  ì
  36. Conversioε progresse≤ unti∞ aε invaliΣ hexadecima∞ digi⌠ (0-9¼ A-ì
  37. F⌐ i≤ encountered.
  38.      Inputs:  HL points to the first byte of the string to convert
  39.               String is loaded in a buffer
  40.      Outputs:  HL points to the offending character
  41.                DE contains the 16-bit value
  42.                A = E
  43.      Registers Affected:  PSW, DE, HL
  44.      SYSLIB Routines Called:  CAPS
  45.      Special Error Conditions:  -None-
  46.  
  47.      Routine Name:  EVAL10
  48.      Function║
  49.           EVAL1░ convert≤ thσ strinτ oµ ASCI╔ decima∞á character≤ ì
  50. pointeΣá t∩á b∙á H╠á int∩á ßá 16-bi⌠á binar∙á value«á  Conversioε ì
  51. progresse≤ unti∞ aε invaliΣ decima∞ digi⌠ (0-9⌐ i≤ encountered.
  52.      Inputs:  HL points to the first byte of the string to convert
  53.               String is loaded in a buffer
  54.      Outputs:  HL points to the offending character
  55.                DE contains the 16-bit value
  56.                A = E
  57.      Registers Affected:  PSW, DE, HL
  58.      SYSLIB Routines Called:  -None-
  59.      Special Error Conditions:  -None-
  60.  
  61.      Routine Name:  EVAL8
  62.      Function║
  63.           EVAL╕á convert≤á thσ strinτ oµ ASCI╔á octa∞á character≤ ì
  64. pointeΣá t∩á b∙á H╠á int∩á ßá 16-bi⌠á binar∙á value«á  Conversioε ì
  65. progresse≤ unti∞ aε invaliΣ octa∞ digi⌠ (0-7⌐ i≤ encountered.
  66.      Inputs:  HL points to the first byte of the string to convert
  67.               String is loaded in a buffer
  68.      Outputs:  HL points to the offending character
  69.                DE contains the 16-bit value
  70.                A = E
  71.      Registers Affected:  PSW, DE, HL
  72.      SYSLIB Routines Called:  -None-
  73.      Special Error Conditions:  -None-
  74.  
  75.      Routine Name:  EVAL2
  76.      Function║
  77.           EVAL▓á convert≤á thσ strinτ oµ ASCI╔ binar∙á character≤ ì
  78. pointeΣá t∩á b∙á H╠á int∩á ßá 16-bi⌠á binar∙á value«á  Conversioε ì
  79. progresse≤ unti∞ aε invaliΣ binar∙ digi⌠ (0-1⌐ i≤ encountered.
  80.      Inputs:  HL points to the first byte of the string to convert
  81.               String is loaded in a buffer
  82.      Outputs:  HL points to the offending character
  83.                DE contains the 16-bit value
  84.                A = E
  85.      Registers Affected:  PSW, DE, HL
  86.      SYSLIB Routines Called:  -None-
  87.      Special Error Conditions:  -None-
  88.