holyszewski.github.io/SFMT-emulator · nothing to install · also as a Windows EXE and an offline HTML file
An emulator of the Radio Shack Science Fair Microcomputer Trainer (28-260)
The Science Fair Microcomputer Trainer (Radio Shack, 1985), the American version of the Gakken FX-Micom R-165, taught programming with a hexadecimal keypad, one seven-segment digit, seven binary LEDs and a speaker. Wolf's SFMT emulator runs the trainer's original program: an own core of its four-bit TI TMS1100 chip, written from the TI manuals, executes the chip's ROM MP1312 with the monitor, the interpreter of the SFMT instructions and the seven built-in games. Nothing of it is imitated.
I made Wolf's SFMT emulator so that you can experiment and play with the Science Fair Microcomputer Trainer without having to dig it out of a collection or a cupboard first, or without owning the original kit at all: type in a program nibble by nibble, step through it, play the built-in games and see how this little computer was used.
The ROM MP1312 is the work of Texas Instruments and Gakken, so it does not come with the emulator. You load it once, and the emulator remembers it:
- Get the file: the MAME ROM set
fxmcr165.zip(the Gakken FX-Micom R-165 has the same chip) or a 2048-byte dump of your own trainer. - Drop it into the emulator's window, or click "Choose the ROM file…". A ZIP does not need unpacking and the name does not matter.
- With the Windows EXE you can simply put the file next to the EXE; it finds it by itself.
Step by step, with what to do when something goes wrong: docs/ROM.md.
- 🧠 The original firmware on an own TMS1100 core: the instruction decoding, the program counter (a shift register, not an adder) and the I/O are derived from the TI manuals and tested against them; the board wiring is the trainer's. Simulated time is counted in chip instructions at 400 kHz, so programs and games run at the original speed.
- 🎮 The seven built-in programs at one click: Electronic Organ, Automatic Tunes, Musical Guessing Game, Rat Bashing, Tennis Game, Timer and Morse Code, each with a short guide.
- ⌨️ Mouse, touch or PC keyboard, the same key sequences as on the real trainer.
- 🔍 A look inside: the state of the SFMT virtual machine (registers A, B, Y, Z, the program counter and memory) and of the chip itself.
- 💾 Programs in and out: hex text and HEX/BIN files into the trainer's memory, export of addresses 00–5F; the whole machine state saved and restored, a game in progress included.
- 🔊 Sound from the trainer's speaker output.
- ✅ Checked against a real trainer: thirteen comparisons on the author's own unit agreed with the emulator, including a timer tick predicted from the firmware.
- 🌗 English and Czech, dark and light theme.
- 🪶 No installation, no dependencies: one web page, also as a single offline HTML file and a single Windows EXE.
- Web: holyszewski.github.io/SFMT-emulator, nothing to install. It runs on phones too.
- Windows: download
SFMT-emulator.exefrom the latest release. It is one file, nothing is installed; it needs the Microsoft Edge WebView2 Runtime, which Windows 11 and most Windows 10 installations already have. Windows may warn about an unknown publisher on the first start, because the EXE is not signed. - Offline:
SFMT-offline.htmlfrom the same release opens in any modern browser without a connection.
In all three, the ROM is loaded as described above. The web version and the offline file remember it separately, so the offline file asks for it once more; putting the ROM next to the file works only with the EXE.
Node.js 20 or newer, no packages to install:
npm test # unit tests
node tools/build.mjs --public # dist-public/web and dist-public/SFMT-offline.html
node tools/serve.mjs 8765 # then http://127.0.0.1:8765/dist-public/web/
Without the ROM in assets/rom/mp1312a.bin the tests that run the firmware are skipped, with a
note. The Windows EXE is built by node tools/build-desktop.mjs --public, with the llvm-mingw
compiler and the WebView2 SDK described in toolchain/README.md.
How the source is laid out, how to build and test it and the conventions it follows are in the development guide.
- The ROM: getting it and loading it.
- Development guide: the source, building, testing and conventions.
- Changelog
- The technical documents are in Czech for now: the specification with the derivation of the chip from the TI manuals, the verification protocol, the tests on the physical trainer and the user guide.
- The firmware MP1312 is by Texas Instruments and Gakken; it is not part of this project.
- The user interface is inspired by the emulator by jkoets; the core is not derived from it.
- The Michroma typeface (© 2011 The Michroma Project Authors) is used under the SIL Open Font License 1.1.
This project is not affiliated with RadioShack, Tandy, Gakken or Texas Instruments. Their product names are used only to say what is emulated.
Wolf's SFMT emulator was designed and tested by its author; its code and documentation were written with the help of the AI Claude (Anthropic). The emulator was checked against the TI documentation, the trainer manual and the author's own trainer.
Bug reports, facts about the real trainer and pull requests are welcome. Please never attach the ROM or any part of it to an issue or a pull request. Before a pull request is merged, contributors agree once to the Contributor License Agreement: you keep the copyright, and the author may also publish the project under other terms besides the GPL. Details are in CONTRIBUTING.md.
Copyright (c) 2026 Matěj "Wolf" Holyszewski.
Wolf's SFMT emulator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The ROM MP1312 is not part of the project and is not covered by this license.
