
Description
This is a JavaScript transputer emulator written by Óscar Toledo G. It is a port of his earlier C emulator, and it runs his 1995 operating system in the browser. The page explains the port. JavaScript treats bitwise operators as 32-bit signed integers, so the emulator uses the unsigned right-shift operator where it needs unsigned values. Typed arrays such as Uint8Array are faster and smaller than normal arrays, and they hold the memory and a 40 MB disk image. The disk image is stored as base64 in the source and decoded with window.atob into a Uint8Array. The emulator also uses Float32Array and Float64Array, shadowed with a Uint32Array, so it can run real floating-point math. The operating system demo includes a 3D modeler, a ray tracer and multitasking. The source code is on GitHub, along with the original C version, the bin2c utility and a related project. The page is part of an article series about the transputer processor.…
Highlights
- Runs a 1995 operating system in the browser
- JavaScript port of the author's C transputer emulator
- Demos include a 3D modeler, ray tracer and multitasking
- Source code on GitHub, with the C version
Ratings & Reviews
No ratings yet
Be the first to rate Transputer emulator in JavaScript.
People also visit
Emulatrix
Emulator with mobile compatibility designed for running in pure JavaScript…
Transputer emulator in JavaScript FAQ
What is this?
A transputer emulator written in JavaScript that runs an operating system from 1995.
What can the operating system do?
The page shows demos of a 3D modeler, a ray tracer and multitasking.
How does the port handle integers?
The article says JavaScript bitwise operators give signed 32-bit integers, so the emulator uses the unsigned right-shift operator where unsigned values matter.
How does it do floating-point math?
It uses Float32Array and Float64Array types shadowed with a Uint32Array, so the emulator can run real floating-point operations.
Where is the code?
On GitHub, including the original C version and the bin2c utility.
What are the best Transputer emulator in JavaScript alternatives?
Popular alternatives to Transputer emulator in JavaScript include EmulatorJS, JS Dos and v86. See all Transputer emulator in JavaScript alternatives


