Free42
HP-42S Calculator Simulator
Free
Free42 is a re-implementation of the HP-42S calculator and the HP-82240 printer.
It is a complete rewrite, not using any HP code, and it does not require an HP-42S ROM image.
Free42 is an Open Source project. The executables and source code are released under the terms of the GNU General Public License, version 2.
All third-party code used in Free42 is either in the public domain, or licensed under terms compatible with GPLv2, or used with the authors' permission.
more NN→S would cut off long complex numbers. Fixed.
EDITN: better checks for operations that modify the matrix currently being edited.
3.5.4 2 days ago
In the programmable menu, pressing ▲ or ▼ if they hadn't been assigned would cause an Internal Error.
Some text handling fixes for Copy and Paste.
Functions invoked using direct XEQ mapping in skins now have fewer side effects.
3.5.3 11 Nov
Implemented ARG.
Implemented conversions to and from DPD-encoded decimal floating point: N→PS/PD/PQ, PS/PD/PQ->N.
Fixed two-argument STOFLAG. It got broken in 3.5.
Fixed pasting of HP-41 style GTO/XEQ IND X/Y/Z/T/L.
3.5.2 5 Nov
Fixed a crash while handling nested lists.
Implemented RE, IM, and CONJ.
0=? and 0≠? now accept complex numbers, real and complex matrices, and lists.
X=? and X≠? now consider a and a+0i to be equal.
Note that these changes do not apply to X=0?, X≠0?, X=Y?, and X≠Y?, for the sake of HP-42S compatibility.
Be sure to check the Free42 web site for the 3.5 release notes as well.
3.5.1 1 Nov
It is now possible to make shifted assignments in the programmable menu and in CUSTOM.
It is now possible to use a list for REGS, instead of a matrix. With a list in REGS, the numbered registers can hold all types of data.
Many built-in functions can now be applied to lists, causing them to operate on the elements of the list one by one. See the Free42 web site for details.
Implemented SORT function. It sorts lists. See the Free42 web site for details.
PRV and PRX now handle nested lists, and matrices inside lists.
Better list display in the stack.
SHOW didn't handle lists. Fixed.
Implemented PARAMS function. Given a global LBL name, it returns a list containing all its associated MVAR parameters.
3.5 30 Oct
PRTRACE fixes and improvements.
3.4.1 22 Oct
Implemented try/catch style error handling: TRY, TRYX, CATCH?, PRTRACE. See the Free42 web site for details.
RTNERR supports five additional error numbers; see the Free42 web site for details.
Keyboard mapping now uses a platform-independent syntax. The existing keymap.txt is renamed to keymap.old, and a new keymap.txt is created, using the new syntax. All the skins in the Free42 skins collection that contain keyboard mappings have been updated to take advantage of the new syntax, but the old syntax is also still supported, but only in skins, not in keymap.txt.
Direct XEQ mapping: Skins can now define macros that perform an XEQ that works regardless of which menu is active, using the syntax `FOO` to perform XEQ "FOO".
Implemented MENU1: This works just like MENU, i.e. it opens the Programmable Menu, except MENU1 opens the menu as an application menu, rather than as a regular menu. This means that MENU1 allows users to interact with command menus without losing their place in the programmable menu.
Flag 33 is now automatically cleared whenever a non-programmable-menu key is pressed. This can be used to implement VARMENU-like behavior using the programmable menu.
Implemented IP→S, a function that converts the integer part of a number to a string, like AIP, except the string is placed in the X register, not ALPHA.
Fixed NORM/TRACE output for programmable menu.
Added keyboard shortcut for Show Print-Out.
Windows and MacOS versions: When a skin is selected that is too large to fit on the screen, it is now automatically scaled down to fit, while preserving its aspect ratio.
3.4 17 Oct
Fixed RLN and RRN for negative numbers in BSIGNED mode.
More accurate GAMMA for integer arguments.
3.3.12 5 May
Added statistics sums to STAT->Σ and CATALOG->STAT menus.
3.3.11 15 Jan
Fixed crash in menu logic.
3.3.10 29/10/2025
When a new program was created by inserting END, the new program could end up being locked initially. Fixed.
3.3.9 16/10/2025
Fixed a couple of rare crashes.
3.3.8 03/07/2025
Fixed pasting of 10^X without line number.
3.3.7 30/06/2025
Fixed potential crash on app restart.
3.3.6 05/06/2025
Fix for unreliable state file saving.
3.3.5d 04/06/2025
Fix for certain rare crashes.
3.3.5b 30/05/2025
Better handling of ACC=0 in INTEG.
More accurate C.E^X-1.
3.3.5 21/05/2025
Fixed handling of shared matrices in PUTMI.
Fixed handling of subnormal complex numbers in 1/X.
Added SLN, SRN, and ASRN to CATALOG->BASE.
Fixed skin key highlighting for hardware keyboard keystrokes, when using certain skins with complicated key mappings.
3.3.4 06/05/2025
BASE menu: Implemented SLN, SRN, and ASRN. These functions are can be typed as Shift-SL, Shift-SR, and Shift-ASR, respectively, and RJ can now be typed as Shift-LJ.
More accurate DET, INVRT, and matrix division for 2x2 matrices.
When spelling out built-in function names, '-' is now accepted as an alternative for '→', to make conversion functions easier to type.
Menu keys that execute different functions when pressed with Shift now show their alternate function while Shift is active. (This behavior can be disabled and enabled using the new STATIC and DYNAMIC settings in the new MENUS submenu of the MODES menu.)
Decimal version: BS→N and BD→N were rounding their results to 16 digits. Fixed.
3.3.3 29/04/2025
(3.3) BASE enhancements: shift and rotate functions, bit manipulation functions, floating-point conversions, and optional digit grouping. See the Free42 web site for all the details.
(3.3.1) BASE: Fixed DECINT behavior for -2^(WSIZE-1).
(3.3.2) RLN, RRN, RLCN, and RRCN did not drop the stack. Fixed.
3.3.2 25/04/2025
BASE enhancements: shift and rotate functions, bit manipulation functions, floating-point conversions, and optional digit grouping. See the Free42 web site for all the details.
(3.3.1) BASE: Fixed DECINT behavior for -2^(WSIZE-1).
3.3.1 25/04/2025
BASE enhancements: shift and rotate functions, bit manipulation functions, floating-point conversions, and optional digit grouping. See the Free42 web site for all the details.
3.3 24/04/2025
Fixed crash in RCOMPLX/PCOMPLX when the stack is empty (NSTK mode).
3.2.8 11/04/2025
More efficient sorting in file selector.
3.2.7 17/03/2025
The file selector wasn't sorting the directory listing. Fixed.
3.2.6a 11/03/2025
NN→S would cut off long complex numbers. Fixed.
EDITN: better checks for operations that modify the matrix currently being edited.
more Version 3.5.4 2 days ago
Data Not Collected The developer does not collect any data from this app.