x48ng
x48ng is a fork of x48 written by Gwenhael Le Moine, dedicated to emulating HP48 S, SX, G, and GX calculators, with only the source version 0.41.1 available for mobile and other platforms.
This software no longer receives updates. Its last known release dates from October 21, 2025. Check that it still works with your version of macOS.
x48ng is an emulator dedicated to HP48 S, SX, G, and GX calculators, designed for engineering, programming, and advanced calculations. Developed as a fork of x48, it replicates the software environment (RPL) of these retro devices, offering users a software alternative to their hardware.
While the project is primarily open-source maintained, its port to macOS (especially recent architectures) remains possible through manual compilation. The tool is aimed at HP calculator enthusiasts or developers looking to test programs written for these platforms. No official binary version is distributed for macOS.
Last updated:
Platforms
Architecture
Mac OS X - macOS
Apple Silicon
64-bit
SDL Library
No prebuilt binary is distributed here. The source code is available: this software is obtained by building it, or by sideloading.
Download and links
- Official website
- Source code 59 GitHub stars
Version history
0.51.2
- Correction des couleurs des modes du clavier numérique, impliquant une amélioration visuelle des affichages correspondants.
Fix the colors of the keypad modes, thanks to @promindsd
0.51.1
- Ajout d’un mode --chromeless pour masquer la bordure et désactiver l’affichage automatique de l’aide dans l’interface en ligne de commande.
- Correction de l’affichage à 131 colonnes en mode --tui-small et --tui-tiny.
- Remplacement de setup-x48ng-home.sh par un script x48ng-launcher comme point d’entrée principal, gérant la configuration de ~/.config/x48ng.
- Mise à jour du fichier README avec les bonnes combinaisons de touches pour l’interface TUI et leurs alternatives.
.1 release to fix broken x48ng-launcher and remove setup-x48ng-home.sh
- To handle smaller terminals, TUI now understands
--chromelesswhich removes the border and not display the help by default. - In
--tui-smalland--tui-tinyx48ng correctly display only 131 columns. - There's a new
x48ng-launcherscript that should be used as the main binary. Likesaturnngbinaries, it sets up~/.config/x48ngis needed before running the actual binary. This makessetup-x48ng-home.shobsolete (which has been removed.) - Updated README with correct keys of TUI and list their alternatives too.
0.51.0
- Ajout d’un mode --chromeless pour les terminaux réduits, supprimant la bordure et désactivant l’affichage de l’aide par défaut.
- Correction du nombre de colonnes affichées (131) dans les modes --tui-small et --tui-tiny.
- Introduction d’un script x48ng-launcher comme binaire principal, remplaçant setup-x48ng-home.sh désormais obsolète.
- Mise à jour du README avec les bonnes combinaisons de touches du TUI et leurs alternatives.
- To handle smaller terminals, TUI now understands
--chromelesswhich removes the border and not display the help by default. - In
--tui-smalland--tui-tinyx48ng correctly display only 131 columns. - There's a new
x48ng-launcherscript that should be used as the main binary. Likesaturnngbinaries, it sets up~/.config/x48ngis needed before running the actual binary. This makessetup-x48ng-home.shobsolete (which will be removed.) - Updated README with correct keys of TUI and list their alternatives too.
0.50.0
- Interface utilisateur entièrement remplacée par ui4x, commune avec saturnng et hpemung, basée sur SDL3 et abandonnant le support X11.
- TUI (ncurses) améliorée pour une meilleure gestion des interfaces en ligne de commande.
- Réécriture complète du système de gestion des écrans LCD, inspiré de saturnng.
- Refactorisation et renommages de code liés à la convergence des projets x48ng, saturnng et hpemung.
Lots of changes:
-
replaced whole UI with ui4x, my common UI now shared with x48ng, saturnng and hpemung
- GUI now uses sdl3
- dropped X11
- TUI (ncurses) is improved
-
in parallel the whole LCD management has been reworked, inspired/copied from saturnng
And, as always, various code fiddling, renaming and such as I work on and compare x48ng, saturnng and hpemung (and emu48, and etc.)
0.41.1
- Correction d’un bug graphique mineur sur le système Sega Saturn.
- Ajout d’un support amélioré pour les périphériques Sega Saturn via SaturnNG.
Quick fix release to acknowledge the small graphic bug on 9.
I've spend my time lately working on https://github.com/gwenhael-le-moine/saturnng which is coming along nicely.
0.41.0
- Remplacement complet de l’interface utilisateur SDL1 par une version SDL2, avec une transition transparente pour l’utilisateur.
- Ajout d’une cible uninstall dans le fichier Makefile pour faciliter la désinstallation.
- Optimisations internes du code sans impact visible sur les fonctionnalités.
- Removed sdl1 UI and replaced it with the sdl2 one. It should be mostly transparent.
- Added an
uninstalltarget to the Makefile - some behind the scene code fiddling
As a sidenote please say high to x48ng's sibling https://github.com/gwenhael-le-moine/saturnng for its first release \o/
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.40.2...0.41.0
0.40.2
- Dernière version incluant l’interface graphique SDL1 avant sa suppression future.
- Correction d’un bug dans le parsing de la valeur de mise à l’échelle depuis le fichier de configuration.
- Ajustement mineur de la génération du fichier de configuration par défaut.
(Sorry about the rapid-fire releases -.- Notice a bug, fix it, release, notice more stuff, fix them, release, ... I'll stop for today before I drop the SDL1 UI without much of a warning (It'll happen soon enough ;) ))
- Fixed a bug parsing scale from config file
- adjust a little how the default config is generated.
/!\ Last version including the SDL1 GUI
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.40.1...0.40.2
0.40.1
- Correction d’un bug dans le script setup-x48ng-home.sh liant incorrectement le ROM depuis le mauvais chemin.
There was a small bug in setup-x48ng-home.sh linking the ROM from the wrong path
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.40.0...0.40.1
0.40.0
- Ajout du paramètre --scale= pour ajuster la taille de la fenêtre dans l'interface graphique SDL2.
- Mise à jour de la page de manuel et de la configuration affichée pour inclure la mention de SDL2.
- For SDL2 UI only: Added
--scale=parameter to adjust up/down the size of the window - mention sdl2 in manpage and printed config
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.39.0...0.40.0
0.39.0
- Intégration de l’interface graphique SDL2 par défaut, remplaçant l’ancienne SDL1 (désactivée par défaut, incompatible avec SDL2).
- Suppression de l’outil mkcard, remplacé par une commande dd pour créer des cartes portables.
- Réécriture de setup-x48ng-home.sh pour éviter toute dépendance à @PREFIX@.
- Possibilité de choisir la version de Lua utilisée lors de la compilation via LUA_VERSION=luajit.
Kind of a big release
What's Changed
- The SDL2 UI is finally here! It's built by default and the old SDL1 UI, while still included for now, is disabled by default. Note that both SDL2 and SDL1 UIs cannot be built alongside.
mkcardhas been removed.dd if=/dev/zero of="$DOTX48NG"/port1 bs=1k count=$PORT1_SIZEdoes the jobsetup-x48ng-home.shhas been reworked to not depend on@PREFIX@- You can now choose against which lua you link during compilation passing
LUA_VERSION=luajit(for example) tomake[ Makefile: link against user-configurable Lua version by @antecrescent in https://github.com/gwenhael-le-moine/x48ng/pull/25 ]
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.38.0...0.39.0
0.38.0
- Ajout d’une meilleure configurabilité du Makefile pour une compilation plus flexible.
- Intégration du respect des options --gray et --mono dans l’interface SDL.
- Suppression des ROMs incluses dans le dépôt en raison d’un statut de licence ambigu (téléchargement via script de setup).
- Réécriture majeure du code, notamment avec suppression de doublons entre les interfaces.
- Améliorations mineures et ajustements techniques divers.
It's been a minute...
What's Changed
- Improve Makefile configurability by @antecrescent in https://github.com/gwenhael-le-moine/x48ng/pull/22
- sdl UI now obeys
--grayand--mono - otherwise more small code fiddling and more major refactoring, especially some de-duplication between the UIs
- EDIT: Oh, and the ROMs are not included anymore due to unclear license. The setup script will get them for you.
New Contributors
- @antecrescent made their first contribution in https://github.com/gwenhael-le-moine/x48ng/pull/22
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.37.0...0.38.0
0.37.0
- Ajout d’un correctif urgent pour résoudre un problème lié à l’issue #19 (détails non précisés).
- Refactorisation interne importante pour améliorer la stabilité et la maintenance du code.
- Aucune nouvelle fonctionnalité majeure, système ou support matériel ajouté.
Lots of behind the scene refactoring but this release has been cut to publish the fix for #19
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.36.90...0.37.0
0.36.90
- Ajout d’une option --inhibit-shutdown pour bloquer temporairement l’arrêt du système (solution brute et non testée).
- Correction mineure de formulations dans le code et les messages d’erreur.
- Version bêta marquée par un numéro non séquentiel en raison de l’absence de tests exhaustifs.
A quick release adding an option --inhibit-shutdown as a quick and crude temporary fix for #15
Side effects of this option aren't tested, use with caution, hence the funky version number.
Also many minor tweaks in wording in code and messages.
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.36.0...0.36.90
0.36.0
- Ajout de préférences pour les options --tui-tiny et --tui-small dans l’interface en ligne de commande.
- Remappage des touches F1 à F7 pour des actions spécifiques dans l’interface TUI.
- Améliorations mineures de l’interface utilisateur (UI tweaks) dans le mode TUI.
Not much changes.
- prefer
--tui-tinyand--tui-smalloptions - map F1 to F7 keys to actions in tui
- UI tweaks in tui
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.35.0...0.36.0
0.35.0
- Standardisation des raccourcis clavier pour les trois interfaces utilisateur avec affichage explicite dans --tui.
- Ajout de la combinaison F1 : Entrée, F2 : Maj gauche, F3 : Maj droite, F4 : Alpha, F5 : Activation, F7 : Quit.
Standardize the following keybindings across all 3 UIs, display this helpful text in --tui
F1: Enter, F2: Left-shift, F3: Right-shift, F4: Alpha, F5: On, F7: Quit
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.34.0...0.35.0
0.34.0
- Ajout d’un nouvel argument --leave-shift-keys et suppression de la constante DONT_SHADOW_SHIFTS.
- Correction du choix par défaut de l’interface utilisateur pour refléter ce qui est compilé (priorité : X11 > SDL > TUI).
- Amélioration de la compatibilité avec Lua 5.1 et versions antérieures.
- Introduction d’une cible make get-roms pour permettre une récupération externe des ROMs.
- add a --leave-shift-keys, remove DONT_SHADOW_SHIFTS.
- fix default UI choice ti match what's compiled in. Priority in order is X11 > sdl > tui
- (hopefully) make it compatible with lua as old as 5.1
- add a
make get-romsso that we may one day not ship ROMs
Full Changelog: https://github.com/gwenhael-le-moine/x48ng/compare/0.33.0...0.34.0
0.33.0
- Correction du comportement des touches Shift dans les variantes --x11 et --sdl** lors de la compilation avec DONT_SHADOW_SHIFTS=yes.
- Utilisation possible des touches Control gauche/droite pour simuler les Shift en alternative.
Compiling with make DONT_SHADOW_SHIFTS=yes builds a binary where the --x11 and --sdl variants don't map the Shift keys. You can still use left and right Control keys to left and right shift inside the emulator.
This is a first fix for #13
0.32.0
- Ajout d’un mode --tui --tiny utilisant 8 pixels par caractère, optimisé pour les terminaux réduits (70x20).
- Trois modes de résolution pour --tui : 1px, 4px et 8px par caractère selon la taille du terminal.
- Recommandation d’utiliser --mono avec le mode --tiny pour améliorer la lisibilité.
I didn't expect to make a new release so soon but I'm floored by how easy adding --tiny was!
--tui now has 3 modes:
--tuiwhich use 1 pixel per character, requiring a terminal at least 135x70--tui --smallwhich use 4 pixels per character, requiring a terminal at least 70x40--tui --tinywhich use 8 pixels per character, requiring a terminal at least 70x20 (best used with--monofor readability)
Enjoy this release as much as I'm proud of having made it!
0.31.1
- Correction de l’affichage des bordures dans l’interface en ligne de commande --tui pour un rendu plus propre.
Minor release to tidy up how the border is drawn in --tui
0.31.0
- Ajout d’une option TUI réduite avec --tui --small pour afficher 4 pixels par caractère via des caractères Unicode.
- Correction de la valeur par défaut de configDir contenant un .config/ redondant.
- Optimisation légère du code ncurses pour améliorer les performances.
bugfix
- default value of configDir had a redundant
.config/
functionality
- Added a smaller tui option: using
--tui --smallwill use unicode characters to pack 4 pixels per screen character (small = truein config.lua) - small optimization of the ncurses code
Reply on the forum
A question or a hands-on report? Open the discussion on the forum.