home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / math / n41.lbr / N40.DQC / N40.DOC
Text File  |  1986-10-30  |  4KB  |  126 lines

  1.  
  2. N Ver 4.0 Numerical/Logical Converter/Evaluator (C)1985 Norman H. Strassner
  3.  
  4.         D O C U M E N T A T I O N   N O T E S
  5.  
  6.     N40 operates as either a CP/M transient or in a local command mode.
  7. N40 enables translation and logical evaluation of numbers and expressions,
  8. sending all results to the console device and optionally to a disk file.
  9.  
  10.     Transient operation:
  11.         See examples below
  12.     Local command mode:
  13.         All examples below are valid PLUS:
  14.     ESCape key  -  Enables/Disables output file. Fully prompting.
  15.     "?"        -  Displays help page
  16.     ";"        -  Allows entering a comment into output file.
  17.                Any expressions past semicolon are ignored.
  18.  
  19.     Accepts DECIMAL, HEX and BINARY numbers, and ASCII characters,
  20. Displaying equivalences in all four forms. APPEND n with "H" if hex, "B"
  21. if binary. No appendage if decimal
  22.  
  23. PREFIX control characters (^@ - ^Z) with caret "^"
  24.  
  25. PREFIX CAPITAL ASCII (SPACE - TILDE"~") with "@"
  26.  
  27. PREFIX LOWER CASE ASCII (a - z) with "!"
  28.  
  29. LOGICAL OPERATORS:  +  ADD  -  SUB  *  MUL  /  DIV  AND  OR  XOR . (.=CLEAR)
  30.  
  31. Delimeters between commands = space or comma
  32.  
  33. From Command Line:
  34. A>N n               ....For single input
  35. A>N n n,n,n,n n...n      ....For multiple inputs
  36. A>N n [logical op] n [logical op],n n . n [logical op] n
  37.  
  38.     Entire line can be mixed with single inputs and logical equations.
  39. A period [.] in the command line will clear the 16 bit accumulator and
  40. restart the program, resuming next position in command line after [.].
  41.  
  42. N40 will not give remainders from division, or overflow indicators of
  43. results greater than 65535 (0FFFFH)
  44.  
  45. Example:
  46. A series of expressions and numbers from the command prompt:
  47.  
  48. Example 1:
  49. Transient conversions, one or more operations:
  50.  
  51. A>N40 5 9 4 . ^A !A @A
  52.  
  53. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  54.     5        0005H        00000000 00000101B    ^E
  55.     9        0009H        00000000 00001001B    ^I
  56.     4        0004H        00000000 00000100B    ^D
  57. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  58.     23        0017H        00000000 00010111B    ^W
  59. AND    42        002AH        00000000 00101010B    *
  60.  =    2        0002H        00000000 00000010B    ^B
  61. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  62.     1        0001H        00000000 00000001B    ^A
  63.     97        0061H        00000000 01100001B    a
  64.     65        0041H        00000000 01000001B    A
  65.  
  66. A>
  67.  
  68.  
  69. Example 2:
  70. Transient numerical/logic conversion conversion, one or more operations:
  71.  
  72. A>N40 500 + 460 / 2 . 110110B OR 000001B . FAFH AND FA0H OR 4 . 9038
  73.  
  74. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  75.     500        01F4H        00000001 11110100B    [N/A]
  76. ADD    460        01CCH        00000001 11001100B    [N/A]
  77.  =    960        03C0H        00000011 11000000B    [N/A]
  78. DIV    2        0002H        00000000 00000010B    ^B
  79.  =    480        01E0H        00000001 11100000B    [N/A]
  80. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  81.     54        0036H        00000000 00110110B    6
  82. OR    1        0001H        00000000 00000001B    ^A
  83.  =    55        0037H        00000000 00110111B    7
  84. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  85.     4015        0FAFH        00001111 10101111B    [N/A]
  86. AND    4000        0FA0H        00001111 10100000B    [N/A]
  87.  =    4000        0FA0H        00001111 10100000B    [N/A]
  88. OR    4        0004H        00000000 00000100B    ^D
  89.  =    4004        0FA4H        00001111 10100100B    [N/A]
  90. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  91.     9038        234EH        00100011 01001110B    [N/A]
  92.  
  93. A>
  94.  
  95. Example 3:
  96. From internal command line:
  97.  
  98. N40>4D90H OR 0FFH + 1 . 16 * 9 / 2 . 10011B OR 111000B
  99. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  100.     19856        4D90H        01001101 10010000B    [N/A]
  101. OR    255        00FFH        00000000 11111111B    
  102. =    19967        4DFFH        01001101 11111111B    [N/A]
  103. +    1        0001H        00000000 00000001B    ^A
  104. =    19968        4E00H        01001110 00000000B    [N/A]
  105. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  106.     16        0010H        00000000 00010000B    ^P
  107. *    9        0009H        00000000 00001001B    ^I
  108. =    144        0090H        00000000 10010000B    ^P
  109. /    2        0002H        00000000 00000010B    ^B
  110. =    72        0048H        00000000 01001000B    H
  111. ----  DECIMAL  ----   HEXIDECIMAL  --------  BINARY  -----  -- ASCII --
  112.     19        0013H        00000000 00010011B    ^S
  113. OR    56        0038H        00000000 00111000B    8
  114. =    59        003BH        00000000 00111011B    ;
  115.  
  116.  
  117. Questions and comments to:
  118.         -Norman H. Strassner
  119.         CIS PPN 72135,1051
  120.         MCI NSTRASS
  121.  
  122.         SYSOP, VIDEOMAN RCP/M
  123.         HOLLYWOOD, CA.
  124.         (213) 666-8588 300/1200bd
  125.  
  126.