Free42
Free42 emulates the HP-42S scientific calculator and the HP-82240 printer on Mac, with a version 3.2.5 compatible with macOS 10.9 and later, while Plus42 adds additional features.
Free42 is a full emulator of the programmable scientific calculator HP-42S and its associated printer, the HP-82240. Developed by Thomas Okken, it accurately replicates the hardware and software behavior of the original device without requiring a ROM image. The emulation includes a user interface matching that of the HP-42S, along with compatibility for its existing programs.
On macOS, the emulator runs from macOS 10.13 (High Sierra) onward and supports recent architectures, including Apple Silicon. Open-source under the GPLv2 license, Free42 is distributed with accessible source code and additional tools (program conversion, customizable skins). For extended features (zoomed display, algebraic calculations, 2D graphics), the Plus42 version is recommended.
Last updated:
Platforms
Architecture
Mac OS X - macOS
Apple Silicon
64-bit
Download and links
- Download Free42
- iOS version (3.5.4)
- Official website
- Source code
- Command copied to the clipboard.
- Homebrew page
Version history
3.5.4
- Correction de la coupure des nombres complexes longs lors de la conversion entre modes NN et S.
- Amélioration des vérifications pour les opérations modifiant la matrice en cours d’édition dans EDITN.
* Fixed two-argument STOFLAG. It got broken in 3.5. * Fixed pasting of HP-41 style GTO/XEQ IND X/Y/Z/T/L.2026-10-31: release 3.5.1* 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. Lists are checked recursively; empty lists are considered to be zero. * X=? and X≠? now consider a and a+0i to be equal. Which, let's be real here, they are. * Note that these changes do not apply to X=0?, X≠0?, X=Y?, and X≠Y? They remain complex-unfriendly, for the sake of HP-42S compatibility.2026-10-30: release 3.5* 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.2026-10-22: release 3.4.1* PRTRACE bug fix: it could corrupt the global LBL table. * PRTRACE improvements: 1. When there is a RTN that was caused by a KEYX, now shows the details of the menu keystroke, after the line that had caused program execution to halt. 2. When invoked from a program without an error having been caught, the first line in the stack trace now shows the PRTRACE line, rather than the line after the PRTRACE.2026-10-16: release 3.4* 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.2026-05-04: release 3.3.12* Fixed RLN and RRN for negative numbers in BSIGNED mode. * Decimal version: More accurate GAMMA for integer arguments.2026-01-13: release 3.3.11* Added statistics sums to STAT->Σ and CATALOG->STAT menus. * Android version: Fixed initial keyboard focus.2025-10-28: release 3.3.10* Fixed crash in menu logic.2025-10-21: release 3.3.9a (Android only)* Another workaround for the buggy vibrator in Android 16. This one is a new option, "use older haptic feedback logic," for phones like the Pixel 10 Pro, where the pre-3.3.8f haptic feedback logic worked, but the new logic introduced in 3.3.8f does not.2025-10-15: release 3.3.9* When a new program was created by inserting END, the new program could end up being locked initially. Fixed. * Linux version: Fixed beeper when running under Wayland. * Linux version: Replaced built-in XPM icons with PNG ones, for compatibility with certain recent Linux distros. * Windows and MacOS versions: Made the links in the About box more obviously clickable.2025-10-10: release 3.3.8f (Android only)* Workaround for buggy vibrator in Android 16.2025-09-27: release 3.3.8e (Android only)* More Android 16 kB compatibility tweaks.2025-09-27: release 3.3.8d (Android only)* Updated build configuration to support 16 kB page size.2025-07-19: release 3.3.8c (Android only)
3.5.4 App Store
- Correction de la coupure des nombres complexes longs lors de la conversion entre modes NN et S.
- Amélioration des vérifications pour les opérations modifiant la matrice en cours d’édition dans EDITN.
NN→S would cut off long complex numbers. Fixed.
EDITN: better checks for operations that modify the matrix currently being edited.
3.5.3 App Store
- Correction de l’erreur interne lors de l’appui sur les flèches ▲ ou ▼ dans le menu programmable non assignées.
- Améliorations des gestionnaires de texte pour les opérations Copier-Coller.
- Réduction des effets secondaires des fonctions appelées via le mapping direct XEQ dans les skins.
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.2 App Store
- Ajout du support pour les commandes ARG. (argumentaire de fonctions).
- Implémentation des conversions bidirectionnelles entre DPD et les formats N/PS/PD/PQ.
- Correction du comportement de STOFLAG avec deux arguments, brisé depuis la version 3.5.
- Pasting corrigé pour les commandes GTO/XEQ IND X/Y/Z/T/L au format HP-41.
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.4.1 App Store
- Correction des problèmes liés à la gestion des traces de programme (PRTRACE) pour une meilleure stabilité.
- Amélioration de la précision des logs et des diagnostics dans les scénarios d'erreur critiques.
- Optimisation des performances lors de l'exécution de programmes complexes nécessitant des traces.
- Réduction des risques de plantages en cas de gestion incorrecte des données de trace.
PRTRACE fixes and improvements.
3.4 App Store
- Ajout d’un système de gestion des erreurs inspiré de try/catch avec les commandes TRY, TRYX, CATCH? et PRTRACE.
- Extension de RTNERR avec cinq nouveaux codes d’erreur, détaillés sur le site officiel.
- Refonte du format de mappage clavier indépendant du système, avec migration automatique des fichiers existants (renommés en keymap.old).
- Intégration de la commande MENU1 pour ouvrir le menu programmable en tant que menu d’application, sans perte de contexte.
- Correction de l’affichage NORM/TRACE dans les menus programmables.
- Ajout d’un raccourci clavier pour afficher l’impression des résultats.
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.3.12 App Store
- Correction des fonctions RLN et RRN pour les nombres négatifs en mode BSIGNED.
- Meilleure précision de la fonction GAMMA avec des arguments entiers.
Fixed RLN and RRN for negative numbers in BSIGNED mode.
More accurate GAMMA for integer arguments.
3.2.5
3.2.5
Full changelog
3.1.12
- Fixed pasting of GETMI, PUTMI, GETLI, and PUTLI.
3.1.11
- Added option to show the active keyboard map superimposed on the skin. The desktop versions have this in the Help menu, and the mobile versions have it in the About dialog.
- Added functions for direct access to matrix and list elements: GETMI, PUTMI, GETLI, and PUTLI. See the Free42 web site for details.
- iOS and MacOS versions: Improved Dark Mode support.
3.1.10
- Now pre-populating state name for States -> More -> Rename.
3.1.9
- Implemented GETKEYA. This works like GETKEY, except that it will not wait for a keystroke if no keystrokes are in the keyboard queue, returning 0 instead in that case.
- Android version: Fixed crash with relative file imports.
3.1.8b
* Fixed crash for certain unrecognized key codes from Bluetooth keyboards.
3.1.8a
* PSE could halt program execution if it was used right after TONE or BEEP.
Fixed.
3.1.8
* Fixed ALPHA pasting during command entry.
3.1.7
* Now recognizing comment delimiters '@' and ';' for program pasting.
* More accurate complex ASIN/ASINH.
3.1.6
* Accuracy improvements for C.LN1+X, and complex LN, ATAN, and ATANH.
3.1.5b
* Windows version: Fixed display flicker using buffered painting.
* iOS and MacOS versions: Changed skin loader to use WKWebView.
3.1.5a
* Reduced display blurriness when the main window is resized.
3.1.5
* Direct command mapping now supports alternate mappings for ALPHA mode.
* Windows version: Fixed a couple of display glitches.
3.2.5
* When looking up built-in functions, ^ and ↑ are now considered equal. This
fixes problems with program typing and pasting, and with direct command
mapping in certain skins, specifically HP-41G and the Mueck_F42* skins.
(Note: this is a related but separate issue from the updates to the Mueck
skins' *.raw support files three days ago.)
3.2.4
* More accurate integer powers of complex numbers. Specifically: special cases
for pure real, pure imaginary, and numbers of the form a+ai and a-ai.
* Fixed VIEW for long values.
* Windows and Linux versions: Fixed handling of skins with non-zero offsets of
the main image (the top left corner of the Skin: line).
3.2.3
* Added a few characters to the character set, in order to allow copying and
pasting text between Free42 and Plus42 without losing information.
* iOS version: Implemented Swipe to Delete in the file selector dialog.
3.2.2
* The CUSTOM menu didn't stick reliably, due to a bug introduced in 3.2. Fixed.
3.2.1
* Fixed crash when trying to load invalid skins.
* Added IDENT function. This returns the app's version number as an integer,
in aabbccdd format, with 3.1.12b formatted as 3011202, for example.
* XROMs are now decoded immediately when pasting.
* iOS version: Removed noise from annunciator area in the Standard-4" and
Standard-X skins.
3.2b (Android and iOS)
* More keyboard fixes.
3.2a (Android only)
* Pop-up keyboard typing fixes.
3.2
* Program locking, to prevent accidental editing of programs. This is done
using the LOCK and UNLOCK functions. See the Free42 web site for details.
* Improved display contrast in the built-in skins.
* Android and iOS versions: Pop-up ALPHA keyboard, for easier text entry.
* Linux version: Dark Mode support.
Reply on the forum
A question or a hands-on report? Open the discussion on the forum.