HP11C Calculator ================ RUN IT FROM THE CLI !!! This is version 1.01 (a few bug fixes & minor changes from the previous version). This program emulates an HP11C calculator. Everything is there, including the program mode (with the instructions displayed as usual, as numbers ...). By default, it's even as slow. It is callable from Workbench or CLI. Usage ----- You can pass as argument a program to be loaded (not run): from CLI, type hp11 (you must be in the directory containing the program, cf miscellaneous), from the Workbench click on the program's icon, press & hold shift and double click on the hp11's icon. Basically, the program opens a window containing an image of an HP11C (it will only look right if you use the standard workbench colours), it looks best on an interlaced screen but will work in non-interlaced mode (however, the image will be rather elongated). You select keys with the mouse or the keyboard, the following keys are supported: 0..9,.,+,-,*,/,return (for enter), esc (for ON). The ON key is treated specially: when you select it, the HP11C becomes an icon that you can move around with the mouse. To turn the calculator back on, double-click on the icon. The following menu options are avalaible: Project New Clear HP11 memory (equivalent to ON -) Open AO Load an HP11 program Save Save program under current name Save As AS Save program under a name Print Print program -- unimplemented Quit End program Edit Copy AC Copy number in display to clipboard Paste AP Enter clipboard as a number into X Options Radix Point A. Select UK/USA format for numbers Comma A, Select European format for numbers Speed Slow Program's execute at HP11C speed Fast Program's execute faster ... Icons Save an icon with a program ? Default = Off when called from CLI, on from Workbench For more details (especially concerning HP11C programming), refer to HP's manual. (I didn't want to get sore fingers ...) Miscellaneous ------------- Please send all bug reports, suggestions for enhancements ... to me. The format for Copy & Paste is not the same (alas ? if you disagree strongly, please send me a note): Copy essentially places an image of what is on the display in the clipboard, thus 200*10^23 becomes 200.0000 23. Paste reads a number in the format +/-x.xE+/-x. The ARP file requester is used if arp.library is present. The program must be able to find the file HP11.PIC. It should be in the same directory as the executable file. However, if you run the program from the CLI, you must either give an explicit path when you execute the program (as in df1:hp11/hp11), or have the file hp11.pic in the current directory. In other words, the program shouldn't be in your PATH specification (for instance in C:). This program is placed in the public domain. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ David Gay "(p.suiv :=: q.prec.suiv).prec :=: q.prec" You don't want to know about this language ! GAY@ELMA.EPFL.CH, or GAY%ELMA.EPFL.CH@CLSEPF51.bitnet ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~