Javascript PC Emulator – Linux in a browser

Pt 101041

Javascript PC Emulator – Linux in a browser

This PC emulator is written in Javascript. The emulated hardware consists in:
• a 32 bit x86 compatible CPU
• a 8259 Programmble Interrupt Controller
• a 8254 Programmble Interrupt Timer
• a 16450 UART.

The code is written in pure Javascript using Typed Arrays which are available in recent browsers. It was tested with Firefox 4 and Google Chrome 11 on Linux, Window and Mac (it does not work with Chrome 12 beta. As far as I know, it is a bug in the browser). In any case, a fast Javascript engine is needed to have good performance.

Tech notes here.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


2 Comments

  1. JS/Linux not GPL but Linux is GPL. Could this not be at least a partial GPL violation, since its Linux might have been modified to run on the emulator.

  2. MOB_i_L: He wrote a PC emulator that happens to be able to run Linux. Saying it is a GPL violation is like saying any PC that runs Linux is also a GPL violation.

    More to the point, can’t you just appreciate an amazing bit of code for a moment?

Sorry, the comment form is closed at this time.