home *** CD-ROM | disk | FTP | other *** search
- Programmer's Calculator
- -----------------------
-
- THE PROGRAM
- ===========
-
- Program : ProgCalc - RISC OS Programmer's Calculator
- Author : Ray Loades-Bannon (with Interface module by Simon Huntingdon)
- 11 Maryland
- Barkham
- Wokingham
- Berkshire
- RG11 4PB
- #14 on Arcade (081-654-2212)
- Version : 2.10
- Date : 24.02.91
-
- This program is hereby donated to the public domain, feel free to copy it
- and give it to other people. In no circumstances will the author be liable
- for any damage, loss of profits, goodwill or any indirect or consequential
- loss arising out of use of this software, or inability to use this software.
-
- A couple of pound coins, a blank formatted disc and a sturdy stamped
- addressed envelope will get you the latest version of this program and my
- other public domain stuff (!FileType, !Ad·Astra, !MaxGammon and !Adventure).
-
- Please read the file !Interface in the !ProgCalc directory for usage
- conditions of, and documentation on, the Interface module.
-
- USAGE
- =====
-
- Use the !Help utility on the RISC OS Applications disc 1 to get live help.
-
- CTRL/SHIFT/F5 'pops-up' the calculator and closes it again. Brave souls
- can change this default by delving into the file !ProgCalc.Variables.
-
- 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.
- Note that 'P' and 'p' ('Power') are equivalent to ⇧ and 'N' and 'n'
- ('Negate') are equivalent to '±'. Note also F1 to F4 equate to the four
- memories (see below for usage).
-
- The symbols on the calculator are based on those used in the 'C' programming
- language :
-
- # = clear input, clears accumulator if current is zero
- H = hexidecimal input mode on/off
- ± = negate input (2's complement) (also 'N' or 'n')
- ~ = 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 (also 'P' or 'p')
- / = Divide
- * = Multiply
- - = Subtract
- + = Add
- = = Equals (gerraway), perform pending operator
- M1-M4 = Memory 1-4
- SELECT to input memory (F1-F4)
- ADJUST, SHIFT/SELECT to put result into memory (SHIFT/F1-F4)
- CTRL/SELECT to add result to memory (CTRL/F1-F4
- CTRL/SHIFT/SELECT to clear memory (CTRL/SHIFT/F1-F4)
- ( = Start sub-calculation, stack accumulator and pending operator
- ) = End sub-calculation and recover previous accumulator
- : = Introduces exponent (no mouse input available)
-
-
- HISTORY
- =======
-
- Version 1.00
- ------------
- Original Version
-
- Version 1.01 - 30.04.89
- ------------
- Fixed 'eating' of F12 command line hotkey (and other unused keys).
-
- Version 2.00 - 12.02.91
- ------------
- This is a total re-write (well nearly). The plus side of this is a much
- slicker look, the down side is a doubling of memory requirements. Stick with
- version 1.nn if you don't think the new look and other changes listed below
- are worth the increase in memory requirements.
-
- Now uses new support procedures and Simon Huntingdon's excellent Interface
- module. This version is basically a test-bed for the wimp interface code I
- am developing for a major application (don't hold your breath). The large
- overhead involved in the generic nature of this code accounts for the vast
- growth in size of this version of ProgCalc. Hopefully this will be negated
- in the much larger major application and will actually result in an overall
- code saving.
-
- Changes :
-
- Sexy new look.
-
- Hot-key (CTRL/SHIFT/F5) and menu short-cuts added.
-
- Fixed a few inconsistencies of when it calculated result, cleared input etc.
-
- Changed parenthesis operation so that ')' leaves result in input.
-
- Lost drag of '#', input and result. Sorry about that, haven't done the
- generic drag code yet. Can still perform most of these operations with
- various clicks or with menu.
-
- Some minor tidying of menus to put a few bits in more logical places and
- also to make them follow RISC OS guidelines better (e.g. no clicking on menu
- items with attached sub-menus needed to convert between radians and degrees
- - you did know that you could do so before didn't you ?)
-
- Caret no longer temporarily grabbed when entering window.This caused more
- hassle than it was worth and was non-standard anyway.
-
- Addition of more 'Clear' options to menu.
-
- Version 2.10 - 12.02.91
- ------------
-
- A few few bug fixes.
-
- 'Input.Base' menu option added.
-
- Hexidecimal (and other bases) changed to full precision (from 32bit
- integers).
-
- Manitissa/exponent separator changed to ':', because hexidecimal can now
- have an exponent and 'e' for exponent would obviously cause a clash.
-
- The wimpslot has actually been reduced by 16K!
-