home *** CD-ROM | disk | FTP | other *** search
-
- HP-10C
- -- ---
-
- This program was written by Duncan Prindle using TDI Modula-2 and
- is freely distributable, as long as this notice is distributed with it.
-
- My BITNET address is: DUNCAN@SLACVM
-
- This is my first program for the Amiga, and my first in Modula-2;
- suggestions would be appreciated. The only known `bug' is that it
- seems that not all memory is returned when the program is closed. I don't
- know why. If you compare with an actual HP-10C you will notice that
- many functions are not in this version, and the keys that are similar
- are arranged differently. Also the C (in HP-10C) is not correct,
- the program does not remember its state from the last time it was closed.
-
-
- ERROR MESSAGES
- ----- --------
-
- Illegal operations will result in an error message. Hitting CLX
- (for Clear X) will get rid of this message, but also erase X, which
- may not be desirable. A simple way to get rid of the error message,
- and not clear X, is to push the right mouse button (make a null menu
- selection).
-
-
- THE FUNCTIONS
- --- ---------
-
- Hopefully it won't be too hard to guess what the buttons mean.
- The RAD key toggles to DEG, allowing trigonometric calculations in
- either radians or degrees. The GLD key (meaning GOLD) is also a toggle,
- selecting alternate functions for a number of keys. Some of the keys
- that may not be obvious are:
- sqr means Squre root
- lsX last X
- CLS Clear Stack
- X-Y Switch X and Y
- (any others?)
-
- Note that there are 10 storage locations recognized by STO and RCL.
- Select STO (or RCL) and then 0 through 9.
-
- I have not implemented the Enter Exponent key (EEX) yet. In fact
- I may never implement it. You can fake it using 10 to the X.
-
- Someday I will learn how to create images, and then the square root
- key will be obvious.
-
-
-
- THE MATH
- --- ----
-
- All calculations are done with real numbers. This means an 8-bit
- exponent and 24-bit mantissa. BINARY, OCTAL and HEX displays
- convert the real number to a 24 bit integer for display purposes only;
- the math is still done with real numbers.
- The display is not big enough to display all 24 bits in BINARY. The
- display will be truncated and no error message will be displayed.
-
- If X will not fit into a 24-bit integer the BINARY, OCTAL and HEX
- display options will print `24-BIT OVERFLOW'. Pushing the right mouse
- button will not clear this error message as the value of X is still
- too big for 24 bits. The number can be displayed in DECIMAL or
- Scientific displays.
-
-
-
- Any other interesting pieces of information ?
-
-
- Note from the poster:
- ====================
-
- In order to ARC this program I had to rename the files.
- To recover the original filenames, prefix the .MOD and .DEF files by
- 'Calc', and change the extensions '.DF' and '.MD' of 'functions' to
- '.DEF' and '.MOD'.
- I have no familiarity with Modula-2, so I can't tell you how to
- compile and link it. I have played with the executable, and it works. It
- seems to me a nice example of an Amiga program in Modula-2.
-
- Enjoy,
- Willy.
-