home *** CD-ROM | disk | FTP | other *** search
- Programmer's Calculator by Ray Loades-Bannon
-
- This program is hereby donated to the public domain, feel free to copy it
- and give it to other people. No claims are made about the performance of
- this program and no responsibility is accepted for its actions.
-
- Use the !Help utility on the RISC OS Applications disc 1 to get live help.
-
- The keyboard may be used while the pointer is over the calculator window, or
- at any time if the input focus has been claimed by clicking on the input
- display icon. The funny symbols on the calculator have been used rather than
- English words to enable the calculator to be used to the fullest extent from
- the keyboard.
-
- The symbols on the calculator are based on those used in the 'C' programming
- language, together with a few of my own :
-
- # = clear input, clears accumulator if current is zero
- H = hexidecimal input mode on/off
- ± = negate input (2's complement)
- ~ = negate input 32 bits only (1's complement, i.e. reverse all bits)
- ^ = XOR 32 bits only
- & = AND 32 bits only
- | = OR 32 bits only
- % = MOD
- >> = Shift right
- << = Shift left
- ⇧ = Power
- / = Divide
- * = Multiply
- - = Minus
- + = Plus
- = = Equals (gerraway), perform pending operator
- M1-M4 = Memory 1-4 (F1-F4 keyboard equivalent)
- ( = Start sub-calculation, stack accumulator and pending operator
- ) = End sub-calculation and use pending operator on it and accumulator
-
- This program is written in C and uses the shared C library and floating
- point emulator from the !System directory, which it expects the desktop to
- have 'seen' beforehand. The system directory can be found on RISC OS
- Application disc 1. Because the program loads these modules it does take up
- rather a lot of memory, however it does share these modules and their memory
- requirements with other C programs such as !Edit, !Draw and !Paint.