Vibe Today

🧮 SN-16C: free HP-16C calculator emulator for the Mac, checked against HP's firmware

· 3 min

The SN-16C calculator showing BEEFCAFE in hexadecimal above four rows of keys

In brief


🧮 SN-16C is a calculator emulator for macOS that recreates the HP-16C, which Hewlett-Packard sold from 1982 to 1989 as the "Computer Scientist" for programmers. The app calculates in hexadecimal, decimal, octal and binary with word sizes from 1 to 64 bits, works on an RPN stack and can be programmed. The developer says he checked it against the original's firmware running on a simulated processor. 📥 SN-16C is free, and the author plans to port it to Windows and Linux later.


What the calculator does. According to the [SN-16C project page](https://sn16c.com), the app handles 1's complement, 2's complement and unsigned arithmetic, with carry and out-of-range flags. Shifts, rotates, masks, bit tests and double-word multiply and divide are there too, all on an RPN stack. Floating-point mode works like the original, in true decimal with a ten-digit mantissa and a two-digit exponent: 0.1 plus 0.2 is exactly 0.3.

Programming. Up to 203 program lines can be recorded, with labels, subroutines four deep, conditional tests and counted loops. A program can be stepped through a line at a time and edited, and a "running" indicator flashes while it works. Clicking the badge flips the calculator over to show the quick-reference label from the back of the real one: error codes, which operation sets which flags, and how each shift moves its bits.

How accuracy was checked. According to the developer, the HP-16C's own firmware ran on a simulated processor. 54,600 key sequences, 1.78 million key presses in all, were played into both systems and the displays compared after every press. They agree everywhere except four conversions out of Floating Point mode, where the original's rounding is one bit off. That is the developer's statement; we did not re-measure it.

Use and origin. The app is downloaded, dragged to Applications and opened. Digits, A to F, Return for ENTER, Delete for BSP and the basic operators can be typed; every other key is clicked. There is no title bar: the case is dragged to move it, and a right-click opens a menu with Quit and an optional key click. The app checks for updates by itself. The page stresses that SN-16C is an independent reimplementation written from the HP-16C Owner's Handbook, with no HP ROM, firmware or code, and no affiliation with HP.

Who it is for. In his post announcing it, the developer writes that the HP-16C appeared the year he started programming professionally and that he used one for years; working originals now sell for about $200 and up. Anyone who works with bits, hex values and RPN, or remembers the device, gets a stand-in on the Mac. Windows and Linux users have to wait for the announced ports.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service