Analysis updated 2026-05-18
Explore what CSS can do by running a compiled C program inside a CSS-only 8086 emulator in the browser.
Study the x86CSS build pipeline to see how C code is cross-compiled to 8086 and loaded into a CSS-based emulator.
Extend the calculator with additional operations by modifying the C source and rebuilding with the Docker toolchain.
| takcastel/css-calculator | d4l3k/upass | wyverncw/freeproxy | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | HTML | HTML | HTML |
| Last pushed | — | 2016-09-30 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 4/5 | 3/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires Docker for the ia16-elf-gcc cross-compiler, only runs correctly in Chrome or Edge.
This project is a calculator that runs inside a web browser through an unusual architecture. The calculator logic is written in C, compiled to 8086 assembly code (the instruction set used by personal computers in the 1980s), and then executed by x86CSS, which is an 8086 processor emulator built entirely out of CSS with no JavaScript involved. The result is a working calculator that runs inside Chrome or Edge, where CSS rules alone handle the processor simulation. The calculator supports digits 0 through 9 and the four basic arithmetic operations. Keys are entered by holding down a key on the numeric keypad, and the screen updates as the emulated processor handles each input. The build process uses Docker to run a cross-compiler toolchain (ia16-elf-gcc) that converts the C source file into a binary the CSS emulator can load. Running npm run build compiles the calculator program, and npm start serves the result as a local web page at localhost:8080 where you can interact with it. This is a technical demonstration project that explores the outer boundaries of what CSS can do, rather than a practical everyday tool. The x86CSS emulator it relies on was created separately by Lyra Rebane. The README is written in French. No license file is included in the repository.
A working calculator written in C, compiled to 8086 assembly, and executed inside a web browser by x86CSS, a CSS-only 8086 processor emulator with no JavaScript.
Mainly HTML. The stack also includes HTML, CSS, C.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.