N30.COM, Version 3.0, (c)1984 Norman H. Strassner D O C U M E N T A T I O N N O T E S N30 is a CP/M transient which enables translation and logical evaluation of numbers and expressions. Accepts DECIMAL, HEX and BINARY numbers, and ASCII characters, Displaying equivalences in all four forms. APPEND n with "H" if hex, "B" if binary. No appendage if decimal PREFIX control characters (^@ - ^Z) with caret "^" PREFIX CAPITAL ASCII (SPACE - TILDE"~") with "@" PREFIX LOWER CASE ASCII (a - z) with "!" LOGICAL OPERATORS: + ADD - SUB * MUL / DIV AND OR XOR . (.=CLEAR) Delimeters between commands = space or comma From Command Line: A> N n ....For single input A> N n n,n,n,n n...n ....For multiple inputs A> N n [logical op] n [logical op],n n . n [logical op] n Entire line can be mixed with single inputs and logical equations. A period [.] in the command line will clear the 16 bit accumulator and restart the program, resuming next position in command line after [.]. N30 will not give remainders from division, or overflow indicators of results greater than 65535 (0FFFFH) Example: A series of expressions and numbers from the command prompt: A> N30 1 + 2 . 5 * 9 / 4 . 23 AND 42 . 4 XOR 100 Will yeild: ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 1 0001H 00000000 00000001B ^A ADD 2 0002H 00000000 00000010B ^B = 3 0003H 00000000 00000011B ^C ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 5 0005H 00000000 00000101B ^E MUL 9 0009H 00000000 00001001B ^I = 45 002DH 00000000 00101101B - DIV 4 0004H 00000000 00000100B ^D = 11 000BH 00000000 00001011B ^K ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 23 0017H 00000000 00010111B ^W AND 42 002AH 00000000 00101010B * = 2 0002H 00000000 00000010B ^B ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 4 0004H 00000000 00000100B ^D XOR 100 0064H 00000000 01100100B d = 96 0060H 00000000 01100000B ` or A> N30 500 + 460 / 2 . 110110B OR 000001B . FAFH AND FA0H OR 4 . 9038 Would yield this display: ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 500 01F4H 00000001 11110100B [N/A] ADD 460 01CCH 00000001 11001100B [N/A] = 960 03C0H 00000011 11000000B [N/A] DIV 2 0002H 00000000 00000010B ^B = 480 01E0H 00000001 11100000B [N/A] ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 54 0036H 00000000 00110110B 6 OR 1 0001H 00000000 00000001B ^A = 55 0037H 00000000 00110111B 7 ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 4015 0FAFH 00001111 10101111B [N/A] AND 4000 0FA0H 00001111 10100000B [N/A] = 4000 0FA0H 00001111 10100000B [N/A] OR 4 0004H 00000000 00000100B ^D = 4004 0FA4H 00001111 10100100B [N/A] ---- DECIMAL ---- HEXIDECIMAL -------- BINARY ----- -- ASCII -- 9038 234EH 00100011 01001110B [N/A] -Norman H. Strassner SYSOP, VIDEOMAN RCP/M HOLLYWOOD, CA. (213) 666-8588