Loading…
TS-SYS-03B // DOS · 386 · VGA MODE 13h

Castalia 92

Castalia 92 is the Windows 95 every 386 owner dreamed of in 1992: a complete graphical desktop — overlapping windows, a taskbar and Start button, a Recycle Bin, thirty-plus built-in programs, fourteen games, eighteen color themes and a demoscene screensaver — that boots from DOS on a 386SX with VGA. It asks for 1 MB of RAM and is designed for 4. It is free, MIT-licensed, and written in period-correct C89.

← BACK TO SYSTEMS
The Windows 95 your 386 never got.
v0.56 · IN DEVELOPMENTDOS 3.3+ · 386VS Windows 95
1 MBMINIMUM RAM
30+PROGRAMS
18THEMES
17DEMOSCENE FX
FREE · OPEN SOURCE (MIT)DOWNLOAD v0.56 (opens in a new tab)SOURCE ON GITHUB (opens in a new tab)SPEC SHEETcastalia-0.56.zip · 2026-08-23
IBM5153
DESKTOP · GRAMOPHONEPlaying a MIDI on the classic teal desktop · LCD, spectrum, playlist
SWITCH CHANNELS TO SEE MORE

Key facts: Castalia 92

Castalia 92 is a Windows 95-style graphical desktop for DOS: overlapping windows, a taskbar with a Start button, a Recycle Bin, eighteen themes and thirty-plus programs and games, in a single .EXE written in C89 that boots from DOS on a 386SX with 1 MB of RAM.

What it is
Windows 95-style graphical desktop for DOS
Platform
DOS 3.3+ · 386
Requirements
386SX · 1 MB RAM (designed for 4) · VGA · DOS 3.3 or later (MS-DOS or FreeDOS)
Status
v0.56 · IN DEVELOPMENT
Latest release
v0.56
Released
2026-08-23
Price
Free
01 // WHAT IT IS

The system, no marketing

VGA · MODE 13h

The constraint is the point. Castalia 92 targets a real-mode 386SX with VGA and 4 MB of RAM — the 1 MB minimum is checked at start-up and reported politely at the DOS prompt — and it is built almost entirely with the tools and rules of that era: no DOS extender, no protected mode, no floating point, no external libraries. If a 1992 machine cannot run it, it does not ship.

“Everyone who owned a 386 remembers the day Windows 95 arrived and their machine could not run it,” said Dave Abellán, creator of Castalia 92. “Castalia 92 is for that machine. It is the desktop 1992 deserved: the whole Windows 95 feeling — the taskbar, the themes, the little startup chime.”

The trick is VGA Mode 13h (320×200, 256 colors): a full off-screen back buffer composited in system memory and presented with partial blits — the compositor tracks damage, so a click repaints a window, not the screen. Title bars sweep a reserved 32-entry DAC gradient ramp, the iconic navy-to-sky bloom. Staying in memory has a price, and the project measured it on a real 386SX/16: with the desktop up, 14 KB of conventional memory was left. Since October, before it launches a DOS program the shell hands its buffers back — about 200 KB in Mode 13h with a wallpaper — and rebuilds them on return; for a big game, started through CASTSHEL from a shortcut marked freemem=true, it unloads entirely.

The Windows 95 your 386 was promised and never got — three years early, in a single .EXE.
02 // WHAT IT DOES

What you can do with it

12 CAPABILITIES
/01

OVERLAPPING WINDOWS

Drag, resize, minimize, maximize and shade (roll-up). Double-click a title bar to maximize, right where your muscle memory expects it. Cascade (F5) and tile (F6) included.

/02

TASKBAR + START BUTTON

A taskbar with one button per window, a tray speaker icon, a live clock and the Start button (yes, “Inicio”: the studio is Spanish, and so is the castle on the crest). A cascading Start menu with flyouts and per-item icons.

/03

GRAMOPHONE

The media player: WAV as real digital audio on a Sound Blaster, a Covox Speech Thing or a Disney Sound Source on the printer port (or PWM tricks on the bare PC speaker), plus polyphonic MIDI with General-MIDI voices on an AdLib/OPL2 FM chip. LCD strip, spectrum analyzer with peak caps, playlists.

/04

SYSTEM INSPECTOR

A live animated dashboard: a hardware readout with status LEDs, an oscilloscope, an LED clock, charging memory/disk gauges and a BIOS equipment strip. Total RAM comes from CMOS and the FPU is actually probed, not read off the BIOS.

/05

BENCHMARK · CASTALIA SCORE

A six-test suite (integer, memory, video kernels) indexed against a 386SX/16 — using the counts a real one returned, not DOSBox's — with a composite CASTALIA SCORE and a machine-class verdict, drawn as animated bars.

/06

EIGHTEEN THEMES

Eighteen complete schemes restyling every pixel of chrome — classic, moncloa, matrix, redmond, hotdog, sunset, sakura, dos… — live-previewed in Settings and cross-faded via a DAC ramp when applied.

/07

FOURTEEN GAMES

Minesweeper, klondike with a winning cascade, Reversi, snake, breakout, falling blocks, ten-floor sokoban, sound memory, Lights Out, fifteen, tic-tac-toe, Pong, 2048 and Corral, the build-a-fence, trap-the-balls puzzle. All with sound effects and persistent high scores.

/08

FREE-MEMORY LAUNCH

Start with CASTSHEL instead of CASTALIA, mark a shortcut freemem=true, and Castalia unloads itself completely to give a big DOS game all of conventional memory, then returns when the game exits.

/09

RECYCLE BIN

Delete in the Disk Cabinet moves a file into its drive's hidden RECYCLED folder — the one Windows 95 used — and records where it came from. The Recycle Bin gathers every drive's bin and restores (recreating missing folders), deletes for good, or empties. Floppies, network drives and Shift+Del delete outright.

/10

PROPERTIES + RIGHT-CLICK

Context menus in the Disk Cabinet: Open, Rename, Delete, Properties. File Properties with live Read-only, Hidden, Archive and System boxes; Drive Properties with label, type and the tilted pie chart; and Date/Time, a calendar and a ticking clock that set DOS's own, one double-click away on the tray clock.

/11

SHUT DOWN

The Shut Down dialog offers shut down, restart — flushing the DOS and SMARTDRV caches, then a warm boot — or return to MS-DOS. First it asks about unsaved work, including Settings applied live that have not reached the INI yet.

/12

NO MOUSE NEEDED

Since 0.55 the whole shell works from the keyboard: F7, F3 and F2 for new, load and save in the editors, Space to tag files in the Disk Cabinet, type-ahead, and a shared file picker that climbs up to the drive list so you can save to a floppy.

03 // REAL SCREENSHOTS · 320×200 · MODE 13h

The full mid-90s liturgy, pixel by pixel

Rendered at the native 320×200 by the shell's own drawing routines
04 // ARCHITECTURE

How it's built inside

INTERNALS
01

MODE 13h COMPOSITOR

VGA 320×200×256 with a full back buffer in system memory, presented with partial blits: the compositor tracks damage and clips every primitive to the region it is about to send, so a taskbar clock tick changes exactly 72 pixels (measured under DOSBox). Mode 12h (640×480×16) fully supported with planar drawing.

02

SCENE-CACHED DESKTOP

The scene is cached: uncovering a window restores pixels from cache instead of recomputing the wallpaper. Cross-fades (themes, screensaver, shutdown) are DAC ramps — free at 320×200.

03

Q8 FIXED-POINT MATHS

Everything animated is fixed-point integer arithmetic on one shared 256-entry sine table. The voxel uses a per-column y-buffer; the corridor is a DDA raycaster with a 16×16 bit-packed map (the whole level costs 32 bytes).

04

REAL-MODE BUDGET

Real mode gives one 64 KB near-data segment (DGROUP) and it fills fast; CI reads the linker map and fails the build past 56 KB. Large tables — sine LUTs, textures, the MIDI buffer — live in far memory by design, and the ones only a single window uses (the screensaver, the benchmark, the file search) are borrowed from DOS when it opens and handed back when it closes.

// HOW A 2026 TEAM SHIPS 1992 SOFTWARE

A screenshot pipeline for a machine that cannot take screenshots

Every visual change is verified in DOSBox, every build is compiled with the era's toolchain, and real iron has its own written test lap in docs/HARDWARE.TXT.
01

Screenshots of the real binary

CI boots the compiled .EXE in DOSBox over Xvfb and captures the screen with ImageMagick: the images come from the same build that ships, not from a reimplementation.

02

16-bit Open Watcom build

GitHub Actions builds the real 16-bit binaries with Open Watcom 2.0 (pinned to one snapshot, medium model, warnings fatal) on every push, and checks DGROUP stays under 56 KB.

03

Regressions under DOSBox

Twelve cases drive the real shell and assert on what is left on the disk — saving, tagging, the Recycle Bin, a full disk — one of them at cycles=1100, about a 386SX/16. The GIF, ICO and INI parsers are also fed hostile files under ASan and UBSan.

04

Lint, consistency, release/

A lint enforces the house C89 style and another script keeps the Makefile, BUILD.BAT and linker script in lock-step. On every merge CI commits the fresh binary back into release/, so the download never lags the source.

SPECIFICATIONS · Full spec sheet
CPU
Intel 386SX or better (486 recommended)
RAM
1 MB minimum, checked at start-up · 4–8 MB recommended
VIDEO
VGA 320×200×256 (Mode 13h) or 640×480×16
INPUT
Keyboard · Microsoft-compatible mouse (INT 33h), optional
AUDIO
PC Speaker · Sound Blaster · AdLib/OPL2 · Covox · Disney
OS
DOS 3.3+ in real mode, no extenders · MS-DOS 6.22 or FreeDOS recommended
VERSION
0.56 · on the way to 1.0
DISTRIBUTION
CASTALIA.EXE · INSTALL.EXE and INSTALL.BAT · release/ folder
CODEBASE
32,000+ lines across 67 C modules · pure C89, no dependencies
DEPENDENCIES
None. Not one library.
TOOLCHAIN
Open Watcom C 2.0 (wcc) · 16-bit, medium model, real mode
LICENSE
MIT · source included
// PERIOD-CORRECT, BY DESIGN

Constraints are a forcing function for craft

Every feature in Castalia 92 — the compositor, the FM synth, the raycaster — had to be rethought until it fit in 16-bit integers and kilobytes of RAM. The result is software with the snap of the machines it loves.
CODEMIT

Pure C89 across 67 modules, without a single vendored external library. Source included; redistribute it with your coverage, cover-mount CDs included.

DEPENDENCIESZero

Not one external library. No extender, no protected mode, no floating point. Just C89 and direct VGA.

THE RULEThe era

If a 1992 machine cannot run it, it does not ship. The constraint is the point, not an obstacle.

CREATED BYDave Abellán

Tombatossals Softworks LLC. Small, frequent releases on the way to 1.0.

05 // STATUS & ROADMAP

Where it is and where it goes

4 EDITIONS
v0.56TODAYThe version the code itself declares (CAST_VERSION in src/castalia.h). On top of it, the Windows 95-style shell landed on 2 October 2026: the Recycle Bin, context menus, property sheets, Date/Time and the Shut Down dialog, together with about 200 KB of conventional memory handed back to DOS whenever a program is launched. 0.56 itself brought find in the Scrap Box — which now holds 16 KB — searching inside files in Find File, and the Music Box back on its feet.
v0.53–0.55EarlierCorral and the Typing Tutor; Ribbons, the screensaver's seventeenth effect; a shared file picker; the whole shell usable without a mouse; repaints that touch only what changed; and an audit that fixed 38 real bugs.
v0.51The printer portCovox Speech Thing and Disney Sound Source (lptdac= in the INI): a 386 laptop with no ISA slots is now a music machine. Localized Start button (startlabel=).
ROAD TO 1.0TargetOne item is left: hardening on real iron. The first lap, a partial one, ran on a 386SX/16 with 4 MB and MS-DOS 7.10; it caught a benchmark calibrated on DOSBox, a miscounted RAM total and the conventional memory that was not there, and all of it was fixed. Closing the item takes three machines that differ in chip, video card and mouse driver, each lap recorded in docs/HARDWARE.TXT.
AFTERThe dreamCommunity theme and icon packs (formats already frozen and documented), more demoscene effects and more speakers of the era. Gravis Ultrasound remains on the list.
// AVAILABILITY
READY RELEASE (FREE)INSTALL.EXE INSTALLERSOURCE ON GITHUBCOVER-MOUNT CD ✓
06 // QUESTIONS

Reasonable doubts

6 QUESTIONS

It is a graphical operating environment: a desktop shell that runs on top of DOS. It does not replace DOS; it puts windows, a taskbar, themes and thirty-plus programs on top, and steps aside when you launch a game that needs the memory.

// PASS IT ON

Know someone who still has the machine?

PLAIN LINKS · NO TRACKERS
  1. 1 MB

    MINIMUM RAM

    A whole graphical desktop — windows, a taskbar, a Start button, a Recycle Bin — that boots from DOS on a 386SX with VGA and 1 MB of RAM.
  2. LPT1

    DIGITAL AUDIO

    Its media player plays WAV files as real digital audio through a Covox Speech Thing on the printer port.
  3. 72

    PIXELS PER CLOCK TICK

    Every primitive is clipped to the region it is about to send, so a taskbar clock tick changes exactly 72 pixels (measured under DOSBox).

GET IT RUNNING

YOU GET castalia-0.56.zip · v0.56

  1. Download castalia-0.56.zip from the v0.56 release.
  2. In DOSBox, mount the folder as C: and run CASTALIA.EXE.
  3. On a real 386SX or better with VGA and 1 MB, copy it over, type INSTALL, then CD \CASTALIA and CASTALIA. Load a mouse driver such as CTMOUSE first if you want the pointer.
DOWNLOAD v0.56 (opens in a new tab)

README BADGE

Runs on 386 + DOS · Castalia 92
[![Runs on 386 + DOS · Castalia 92](https://tombasoft.com/badges/castalia92.svg)](https://tombasoft.com/en/software/castalia92/)

A static image on this server: no script, no counter, nothing that tracks. Or download it and host it yourself.

REAL HARDWARE

Running it on real hardware?

Send us a photo: the machine, the setup, the screen. We read all of it.

If it earned one, a star is how other people find a small repository.

// NEXT SYSTEMCastaliaOS 98 PEDESKTOP · 32-BIT · VS Windows 98 SE
TRANSMISSION · BY EMAIL// SUBSCRIBE

Get on the mailing list.

Devlogs, patches and launches, straight to your inbox. Zero spam, zero analytics, no automated list: to unsubscribe, just hit reply.

9DEVLOGS PUBLISHEDSINCE 2026
2LANGUAGESES · EN
0SPAM · TRACKINGEVER

NO TRACKING100%
PRIVACY100%
FREQUENCY2-3/MONTH
// NO AUTOMATED LIST// 0 ANALYTICS// REPLY TO LEAVE// HOSTED IN VIRGINIA