Category : C Source Code
Archive   : CXLCALC.ZIP
Filename : CALC.ASC

Output of file : CALC.ASC contained in archive : CXLCALC.ZIP
This file contains the help information for the calculator's help screen.
Calc 5.0 is copyright of Terence A. Thomas of Customized Software Services.

Modifications are not allowed.

*B 1,Overview


Calc 2.5 is the latest version of the programmer calculator
that was written by Terence A. Thomas. This calculator got
its starting place in April of 1988, while Terence was at
the University of the Virgin Islands. Upon graduating from
the university, Terence continued to work on the program.
In June of 1988, version 1.0 was done. This version used
windows and string input functions written by Thomas. All
versions of the calculator are written in the 'C' language
which allows speed and compactness. Also with 'C', base
conversion is simple.

Also See: ^Editing^ ^Calculator Modes^ ^Functions^

Along came Ron McFarlane in August of 1988. Ron made
several note worthy suggestions, the major being the
calculators ability to store the values last entered and to
be able to convert them to the user selected modes. Thus,
Calc 2.0 was born. Calc 2.1, 2.2, and 2.3 were versions
that had minor bugs fixed. It should be noted that Calc 2.3
incorporated the WINDOW BOSS window libraries. Calc 2.5 was
written using the CXL (C Extended Functions Libraries). CXL
is written by Mike Smedley and is currently available in
Version 5.0. CXL has many functions that the BOSS did not
have, back ground processing and shadowed windows, to name
a few.
Enjoy CALC 2.5 TAT '89

*B 2,Calculator Modes
There are four functional modes that the calculator can
operate in: (A) Decimal or base 10, (B) Hexadecimal or
base 16, a mode most commonly used by PC and mainframe
programmers, (C) Octal or base eight, and (D) binary or
base 2. Binary is the native language of the computer
system and it consists of 1s and 0s which indicates an ON
or OFF state.

Modes may be selected by using the UP and DOWN arrow keys
or by using the designated function key such as F1 for the
Decimal mode or by using the quick select character in the
specific selection option.

Also See: ^Decimal^ ^Hex^ ^Octal^ ^Binary^ ^Overview^

*B 3,Decimal


The decimal mode is the most commonly used mode for most
calculations. Legal numbers are 0 through 9. The CXL
functions include character verification for decimal mode.

Press the ESC key to leave this window.

Also See: ^Calculator Modes^

*B 4,Hex


The hexadecimal mode is the mode that most programmers
prefer. Legal numbers in the hex mode are from 0 to the
letter 'F' or 'f'. Because hex is base 16, it allows the
entering of the largest values in the calculator. If the
values are to large for the other modes, the values are
then truncated to fit in the 10 character field.

Press the ESC key to leave this window.

Also See: ^Calculator Modes^

*B 5,Octal


The octal mode allows the user to enter legal numbers from
0 through 7. During entry, you may notice that numbers
greater than seven can be entered. Upon pressing enter,
the program checks for legal characters and notifies the
user of any problems.

Press the ESC key to leave this window.

Also See: ^Calculator Modes^

*B 6,Binary
It should be noted that because the binary mode uses the
smallest base (2), values can be relatively large. Thus,
there may be some truncating involved. The legal numbers
are 0 and 1. You can enter numbers greater than one, but
verification on values is performed, much like the octal
mode. Microsoft C 5.1 does not provide any instrinsic
macro to convert to binary, thus all binary operations are
provided by the author, with the use of the macro 'ltoa',
which allows numbers to be converted to ASCII strings by
using a specific radix.

Press the ESC key to leave this window.

Also See: ^Calculator Modes^

*B 7,Operand

Operands are the two values entered prior to generating an
answer. Operand characters are based upon the allowable
numbers that can be entered for a specific mode.

For futher information on valid characters -

Also See: ^Editing^ ^Decimal^ ^Hex^ ^Octal^ and ^Binary^


*B 8,Functions


There are ten operators that can be selected to generate
an answer. These operators perform basic math functions
such as add and divide and also support bit manipulations
such as Shift-Left and Logical ORing.

Also See: ^Operators^ ^Editing^ ^Calculator Modes^


*B 9,Answer


The answers in this window are generated in the four modes
plus, if the value is 0 to 256, the ASCII equivalent of
the answer is displayed.

If you fail to press a key in 10 seconds, the windows will
automatically close themselves.


*B 10,Quit


By pressing the key combination of Alt+X, you can then go
to quitting the program. A small window appears and asks
the user to quit. By default, the choice is set to 'Y'
for YES. To select NO, enter the character 'N'.


*B 11,Editing

Cursor Movement

Arrow keys - cursor movement
Ctrl-LeftArrow - word left
Ctrl-RightArrow - word right
Home - beginning of field
End - end of line/field
Ctrl-Home - beginning of first field
Ctrl-End - end of last field
Tab - next field
Shift-Tab - previous field

Inserting and Deleting

Ins - toggle insert mode
Del - delete character at cursor
BackSpace - delete character left
Ctrl-BackSpace - delete word left
Ctrl-T - delete word right
Ctrl-U - delete to end of field
Ctrl-Y - delete to end of form

Other Editing Keys

Enter - process current field
Ctrl-Enter - process all fields
Ctrl-R - restore field
Esc - abort data entry

Also See: ^Calculator Modes^ ^Overview^

*B 12,Invalid Octal

So you have done it! You have entered an invalid octal
value. Well, at least you have the opportunity to fix it.
Press any key to continue.


*B 13,Invalid Binary

Binary is so simple yet so hard to understand. There are
only two numbers that can be entered in binary mode, 1 and
0. So go back and fix that bad boy.


*B 14,Operators

There are ten logical operators:

+ = Add * = Multiply / = Divide - = Subtract

~ = 1s Compliment > = Shift Right < = Shift Left

| = Logical OR ^^^ = Exclusive OR & = Bitwise AND

Press ESC to Continue.

  3 Responses to “Category : C Source Code
Archive   : CXLCALC.ZIP
Filename : CALC.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: