Graphical Environment for DOS · version 0.56
The nineties desktop your 386 was promised.
The desktop experience of the mid-nineties, delivered to the 386 three years ahead of its time. CastaliaOS 92 is a single real-mode DOS executable, written in C89 without external libraries, that draws every window, menu, icon, game and screensaver itself and stays at about 120 KB in memory. It runs on top of the DOS you already have, on a 386SX with one megabyte.
- 404 KB on disk, about 120 KB resident
- 30+ applications
- 13 games
- 18 themes · 16 screensaver effects
What it is
A graphical environment for DOS
In 1992 a 386SX with 4 MB of RAM was a serious machine, and what it got was a C:\ prompt. Three years later the graphical desktop everybody wanted arrived, and that machine could not run it. CastaliaOS 92 is for that machine.
It is a program you start from the DOS prompt, not an emulator and not a theme: DOS keeps the disk, the file system and memory, and CastaliaOS 92 provides the desktop. Overlapping windows you can drag, resize, shade, cascade and tile; a taskbar with a live clock; a cascading Start-style menu; a file manager on your real drives; a paint program; a media player with an OPL2 synthesizer; thirteen games; and a screensaver that is a small demoscene show.
It runs DOS programs, and can hand the whole machine to a demanding game and return when the game exits.
| Binary | CASTALIA.EXE, 404,438 bytes, single-threaded, event-driven |
|---|---|
| Modules | 65 C files, about 33,000 lines, C89 only |
| Video | Mode 13h (320×200×256, double-buffered) and Mode 12h (640×480×16, planar) behind one set of primitives |
| Input | INT 33h mouse, INT 16h keyboard |
| Sound | PC speaker, Sound Blaster DMA, AdLib/OPL2 General MIDI, Covox and Disney Sound Source |
| Maths | Fixed point off one shared 256-entry sine table; no FPU, no protected mode, no extender |
| Near data | 64 KB DGROUP at 86 %; CI fails the build past the watermark |
Features and status
What is available, what is in validation, what comes next
Verified in continuous integration in DOSBox on every change, including a run at the speed of a 386SX/16; validation on reference hardware completes the path to 1.0.
available in the release in validation built, pending hardware validation roadmap planned
Desktop and apps
- availableWindow managerDrag, resize, minimise, maximise, shade, cascade, tile. Taskbar with tray and clock, cascading Start menu with flyouts, right-click menus, draggable icon grid, drop shadows, gradient title bars.
- availableFilesDisk Cabinet: browse, launch, copy, rename, move, delete, sort, tag with bulk operations, real drive enumeration. My Computer, Find File with search inside files, Hex Peek.
- availableThirty-plus applicationsScrap Box editor, Sketch Pad paint and icon editor, Gramophone player, System Inspector, Benchmark with a composite score, Calculator, Clock and Calendar, Agenda, Cardfile, Character Map, Fractal, Stopwatch, Picture Show, Cinema (FLI/FLC), Typing Tutor, Settings, Help.
- availableThirteen gamesMinefield, Patience, Reversi, Serpent, Breaker, Quadrix, Depot, Echo, Lights Out, Fifteen, Tic-Tac-Toe, Pong and 2048, with sound and high scores.
- availableThemes and the Light Show18 themes with live cross-fade preview, GIF wallpapers, loadable icons, a localisable Start button. Sixteen screensaver effects: plasma, copper bars, starfield, fire, rotozoomer, tunnel, voxel terrain, raycast corridor, kaleidoscope and more.
- availableTwo installersA graphical INSTALL.EXE with a progress bar, and INSTALL.BAT for the command line. Both install to a path you choose.
Hardware paths
- availableBoth video modesVerified booting under DOSBox in 320×200 and 640×480, with mode-aware fonts and metrics.
- availableThe 1 MB memory checkVerified before the screen is touched, with a clear message at the prompt if the machine falls short.
- in validationSoundPC speaker, Sound Blaster, OPL2 and the parallel-port DACs.
- in validationLaunching DOS programsResident launch and the free-memory launch that hands the whole machine to a game.
- in validationCritical-error handlingVerified in emulation.
- roadmapHardware validationThe published acceptance plan across several 386 and 486 machines.
- roadmap86Box and PCem profilesConfigurations for additional emulators.
Light Show
Sixteen effects in integer maths
The screensaver is a small demoscene show: plasma, copper bars, starfield, fire, a Boing ball, rotozoomer, tunnel, matrix rain, vector balls, sine scroller, twister, fireworks, wireframe cube, voxel terrain, raycast corridor and kaleidoscope. Every effect is written in integer maths for the 386SX.
The monitor cycles through stills of seven effects. Hover to pause, click to advance.
Download
Version 0.56
Released 23 August 2026. One archive with the executable, both installers, the configuration file, the manual and the assets. Nothing to compile.
Checksum as published by GitHub for the release asset. The same bundle is maintained under release/ in the repository. Release notes: v0.56 on GitHub.
Requirements
| CPU | Intel 386SX or better |
|---|---|
| RAM | 1 MB, conventional plus XMS. Recommended 4 to 8 MB |
| Display | VGA adapter |
| DOS | MS-DOS 6.22 or FreeDOS |
| Disk | Hard disk with FAT16 |
| Mouse | Recommended: any driver that answers INT 33h |
- Unzip on a DOS machine, load your mouse driver, then run
INSTALL. DOS finds INSTALL.EXE first; typeINSTALL.BATin full for the batch version. CD \CASTALIACASTALIA. A splash, a second or two, and a mouse pointer.
Or in DOSBox, from the repository
dosbox -c "mount c CastaliaOS-92/release" -c "c:" -c "CASTALIA.EXE"
From the release zip instead, and with settings for 386SX speed: the emulator guide.
Building from source takes Open Watcom 2.0 and wmake; wmake release restages the bundle.
Roadmap
The road to 1.0
The feature set, the file formats, run-time CPU detection and the user guide are complete. The remaining milestone is hardware validation: both video modes, mouse drivers, keyboard and BIOS variations, disks, sound, the free-memory launch, persistence and speed, on several 386 and 486 machines. After 1.0: community theme and icon packs, further Light Show effects and additional period sound hardware.
It is not an emulator, not a toy mock-up, and not a themed web page. It is a real-mode DOS binary, written in C89, that draws every pixel itself. CastaliaOS 92 documentation
MIT licence: use it, fork it, put it on a floppy. Created by Dave Abellán and published by Tombatossals Softworks LLC, with thanks to the demoscene and the DOS pioneers. No engine, no toolkit, no third-party code; Open Watcom is used only to build it.
CastaliaOS 92 uses no Microsoft or other third-party names, icons or artwork; the look is an original tribute to the era. It is not Windows, is not affiliated with or endorsed by Microsoft, and cannot run Windows programs. Names of other products appear here only to describe the era it evokes.







