Loading…
TS-SYS-03 // FreeDOS · 386SX EDITION

Castalia DOS

CASTALIA DOS is a practical, beautiful, game-focused DOS-compatible operating environment for real 386 hardware. It is built on the FreeDOS kernel and shell and wraps them in an original suite of tools, eight boot profiles, a game launcher, an installer and a dignified 80×25 text-mode identity drawn from the stone fortresses of Castellón and Valencia.

← BACK TO SYSTEMS
A Mediterranean fortress for your 386.
IN DEVELOPMENT · OPEN SOURCEFreeDOS · 386SX+VS MS-DOS 6.22
8BOOT PROFILES
386SXMIN CPU
80×25TEXT MODE
0MS CODE
FREE · OPEN SOURCEDOWNLOAD v1.0-alpha5 (opens in a new tab)SOURCE ON GITHUB (opens in a new tab)SPEC SHEET.zip · boot .img · 2026-08-15 · PRE-RELEASE
IBM5153
BOOT BANNERThe keep rises · the amber lights up · three seconds
SWITCH CHANNELS TO SEE MORE

Key facts: Castalia DOS

Castalia DOS is a DOS for gaming on real 386 PCs, built on the FreeDOS kernel and shell, with eight memory profiles on its boot menu, a game launcher, an installer and a rescue disk. It has booted on a real 386SX, not only in emulation.

What it is
FreeDOS-based DOS distribution for gaming
Platform
FreeDOS · 386SX+
Requirements
386SX or later · ~640 KB conventional RAM · VGA · 1.44 MB floppy, IDE or CompactFlash
Status
IN DEVELOPMENT · OPEN SOURCE
Latest release
v1.0-alpha5 · pre-release
Released
2026-08-15
Price
Free
01 // WHAT IT IS

The system, no marketing

386-CLASS · DOS

There is no shortage of ways to run DOS in 2026. What there is a shortage of is a DOS that treats a 30-year-old machine as something worth dressing well. Most retro-DOS setups are a pile of drivers and a bare C:\> — functional, and completely anonymous. CASTALIA DOS starts from the opposite instinct: a real 386, booted on purpose, deserves a first-class, coherent, dignified face.

Its identity comes from the stone fortresses of Valencia and Castellón — Peñíscola on its sea-rock, Morella on its hill, the keep of Sagunto. When a Castalia machine powers on, the three-tower keep rises, the CASTALIA DOS wordmark lights amber, stars twinkle over a Mediterranean-blue field, and within about three seconds the menu is ready. Every screen — the boot banner, the rescue disk, the installer, the main menu — wears the same face.

And one rule governs everything else: compatibility beats elegance. When a choice must be made between a prettier design and a game that actually runs, the game wins. That is why the launcher unloads itself from memory before a game runs, and why there are eight memory profiles instead of one clever guess.

On October 1, 2026 something happened that no emulator can sign off on: the installed system booted on a real 386 — a 386SX according to the person who ran it, with a 387, 639 KB of base memory and VGA on a CRT. It reached the menu on the CLEAN and EMS profiles, the launcher started The Secret of Monkey Island in VGA, and CASTMARK, HWINFO and CASTID all ran, the last one reading the kernel’s identity live. One thing failed: the CASTMARK disk test stopped with “drive not ready” while writing to C:. It is written down as it happened in the repository, together with what to re-run on the machine.

Someone decided a 386 deserved a fortress — and then built it. Legally, testably, and beautifully.
02 // WHAT IT DOES

What you can do with it

9 CAPABILITIES
/01

CASTALIA-ONLY SIGN-ON

The FreeDOS kernel is rebuilt from source so its boot banner reads CASTALIA DOS 386SX Edition. No “FreeDOS kernel”, no “Open Watcom”, no scrolling license wall.

/02

THE FORTRESS KEEP

An animated splash: a three-tower keep rises, the wordmark lights amber, the pennants and lit windows flicker like candlelight and stars twinkle over the Mediterranean-blue field. Any key skips it; it never blocks the boot.

/03

EIGHT MEMORY PROFILES

A clean menu at boot: Maximum Compatibility, XMS Gaming (default), EMS Gaming, CD-ROM Gaming, Windows 3.x, Diagnostics, Safe Mode and a plain command prompt. Each loads only its own drivers.

/04

A LAUNCHER THAT STEPS ASIDE

The launcher (LAUNCH) and the menu unload from memory before a game runs, so the game gets every free byte. The elegance is in service of the machine, never the other way around.

/05

THE TOOL ARMORY

MEMPROF, SETSOUND, HWINFO, CFGEDIT, SAFEBOOT, CASTFM, CASTDOC, CASTCOPY, CASTMARK, CASTEDIT, CASTID, UNDEL, CDPLAYER, HELP… thirty text-mode programs, eight of them minigames: Snake, 15-Puzzle, Almena, Minas, Siege, Reversi, Barrels and a Klondike solitaire.

/06

INSTALLER + RESCUE

A SETUP wizard that never partitions or formats on its own, backs up any file it replaces, stops if that backup fails and changes nothing until you confirm. The 1.44 MB floppy is both the installer and an emergency disk, and it always boots Safe Mode: a rescue disk must not depend on the hard disk.

/07

A DIGNIFIED VOICE

Calm, complete sentences; never blames the user, never shouts. And every tool installs its own critical-error handler, so DOS’s “Abort, Retry, Ignore, Fail?” is no longer drawn over the interface.

/08

LEGALLY CLEAN

Zero Microsoft material — no code, binaries, message text or branding. FreeDOS used under its own license, with its source published beside every image, and the copyleft carefully contained.

/09

A KERNEL THAT INTRODUCES ITSELF

The rebuilt kernel does more than change the banner: it reports OEM identity CAh, remembers which profile booted and answers an identity call of its own (INT 2Fh, AH=CAh). CASTID reads it live, and already has on a real 386.

// THE PRACTICAL HEART

Eight gates into the fortress

You choose how you enter, at a clean menu at boot; leave it alone and XMS Gaming starts after ten seconds. Each profile loads only its own drivers and is tuned to hand a game the most conventional memory it can get for the job.
1Maximum CompatibilityHIMEM and DOS in the HMA only: no EMM, no UMBs, no TSRs. For the cranky games.
2XMS GamingDEFAULTHIMEM + UMBs, no EMS page frame. The most free conventional RAM: ~628 KB is the target.
3EMS GamingHIMEM + 64 KB EMS page frame + UMBs.
4CD-ROM GamingEMS + CD-ROM driver (UIDE + SHSUCDX) + sound.
5Windows 3.xEMS + mouse. No cache ships: it uses your SMARTDRV if you put one in C:\DOS.
6DiagnosticsBoots, then runs the hardware report.
7Safe ModeBare kernel, no drivers, and no writes to the disk: for when the disk is the suspect.
8Command PromptNo menu. Just a prompt.
03 // RECONSTRUCTED SCREENS · 386SX EDITION

The boot experience, cell by cell

Rebuilt from the same CP437 art the binaries draw, on the VGA 16-color palette · not photos of a monitor
04 // ARCHITECTURE

How it's built inside

INTERNALS
01

AGGREGATION, NOT A FORK

Original Castalia programs run on top of an open-source DOS, talking to it through documented interfaces: INT 21h, and the kernel’s own INT 2Fh identity call. Not one line of Castalia’s MIT code is linked into the kernel or shell.

02

FREEDOS KERNEL + FREECOM

The FreeDOS 1.3 kernel, build 2043 (KERNEL.SYS), rebuilt as a superset — it removes nothing and changes no documented DOS behavior — and FreeCOM (COMMAND.COM). On top: 30 original 16-bit real-mode programs.

03

BARE-METAL TEXT MODE

VGA 80×25, 16 colors, drawn by direct video-memory writes for speed on a 386SX; BIOS for the cursor and INT 16h for the keyboard.

04

C89 WITH NO HEAP

The whole Castalia layer is real-mode C89, large model, no dynamic allocation: it compiles small and loads fast on period hardware. FAT12 on floppy, FAT16 on disk/CompactFlash.

05

WRITES THAT LOSE NOTHING

The tools that write files — SETUP, CFGEDIT, CASTEDIT, CASTFM, CASTCOPY, SETSOUND — go through one shared module: a temp file, checked writes, and a swap only once everything worked. A full disk no longer ends in a false “Saved”.

// HONEST ENGINEERING, IN THE OPEN

It doesn’t just compile: on every commit, a real disk boots in an emulator

Every change runs an automated pipeline before it is considered good. A DOS that does not boot is not a DOS.
01

Repository gate

C89 syntax check of every source, shell-script linting and repository sanity checks.

02

Host unit tests

The real shared modules — INI parser, UI toolkit, speaker, safe writes, the CASTLINK protocol, the CASTMARK scale and the rebrand tool — compiled and executed natively.

03

16-bit DOS build

All 30 programs and the DOS probes built for real with Open Watcom and verified as genuine DOS MZ executables; the FreeDOS kernel rebuilt with the CASTALIA sign-on.

04

End-to-end boot test

Every FreeDOS package is checked against its pinned SHA-256 digest; a 1.44 MB floppy is assembled, booted in a headless emulator to AUTOEXEC.BAT and, under QEMU, the kernel is checked to answer INT 2Fh. The image ships with its sources archive beside it.

SPECIFICATIONS · Full spec sheet
PLATFORM
Real 386SX → 386DX · 486 · early Pentium
MINIMUM
386SX · ~640K conventional RAM · VGA
STORAGE
1.44 MB floppy · IDE · CompactFlash
FILESYSTEMS
FAT12 (floppy) · FAT16 (disk/CF)
DISPLAY
VGA 80×25 text · 16 colors
AUDIO
PC Speaker · AdLib · Sound Blaster / Pro / SB16
INPUT
Keyboard · serial (COM) or PS/2 mouse
VERIFIED ON
DOSBox and QEMU in CI · real 386SX (Oct 1, 2026): CLEAN and EMS
BUILT WITH
FreeDOS 1.3 · Open Watcom V2 · NASM · mtools
LICENSE
Castalia MIT · docs CC BY 4.0 · FreeDOS GPLv2+ (source beside the image)
KERNEL
FreeDOS 2043, rebuilt · OEM CAh · INT 2Fh AH=CAh
PROGRAMS
30 original · 16-bit MZ executables
// FOUNDATION & LICENSING

Legally clean by construction

CASTALIA DOS is an aggregation of original work and open components. The copyleft stays contained: GPL components are downloaded at build time, checked against pinned SHA-256 digests, and their source is published beside every image as a -sources.zip archive — aggregated with, not linked into, Castalia’s MIT code.
CASTALIA CODEMIT

The 30 programs, the UI toolkit, the boot profiles, the installer and configuration. The documentation is CC BY 4.0.

FREEDOSGPLv2+

The kernel, the FreeCOM shell and the base utilities (SYS, FDISK, FORMAT, MEM, XCOPY, CHKDSK). Their source does not fit on a 1.44 MB floppy, so it is published beside the image, from the same place. HimemX and JEMM386 also travel with the Artistic License.

MICROSOFT0 bytes

No code, binaries, message text or branding. Every image is lawfully redistributable worldwide.

ATTRIBUTIONHonest

FreeDOS credited in the shipped source, in the license tree and on the system’s own About screen.

CREATED BY · Dave Abellán · Claudio di Castello github.com/Tombatossals-Softworks-LLC/Castalia-DOS (opens in a new tab)
05 // STATUS & ROADMAP

Where it is and where it goes

4 EDITIONS
TODAY1.0-alpha5 · on real hardwareThe 1.0-alpha5 “Tombatossals” validation build has booted on a real 386SX (October 1, 2026): the menu on CLEAN and EMS, the launcher, a VGA game, CASTMARK, HWINFO and CASTID. Still to do on the machine: the disk test again, the other six profiles, sound and CD. It is tagged in git, with a typo that stays: v1.0-aplha5.
1.1Montornés · targetA file manager and research into an original kernel: phase 10 of the roadmap, optional, blocking nothing.
1.0Tombatossals · targetThe stable release, still ahead: phase 9 of the roadmap, after hardware validation and a public alpha. Reserved for the legendary giant-hero of Castellón, for when the keep stands on its own.
0.5MorellaThe installer and the game database: GAMES.INI ships 21 entries — 13 period games and the 8 minigames — each with its recommended profile. What phase 6 still needs is to verify them: so far, only Monkey Island has run on real hardware.
0.2PeñíscolaBoot profiles, the main menu, the game launcher, sound / CD-ROM / mouse.
0.1AlmenaraIt boots. The minimal FreeDOS + Castalia image. 386SX-era simplicity.
// AVAILABILITY
SOURCE ON GITHUB1.44 FLOPPY + SOURCES · BUILT IN CIINSTALLER TO C: / CF · IN THE REPO1.0-ALPHA5 VALIDATION BUILD · NOT 1.0 YET
06 // QUESTIONS

Reasonable doubts

6 QUESTIONS

No. CASTALIA DOS ships no Microsoft code, binaries, text or branding. It is FreeDOS plus original, MIT-licensed Castalia work. Any “MS-DOS 6.22-compatible behavior” wording is a plain description of behavior, never a claim of origin.

// PASS IT ON

Know someone who still has the machine?

PLAIN LINKS · NO TRACKERS
  1. 8

    BOOT PROFILES

    Eight boot profiles instead of one clever autodetect: you choose how you enter at a clean menu, and XMS Gaming starts on its own after ten seconds.
  2. 386SX

    REAL HARDWARE

    On October 1, 2026 it booted on a real 386SX, on the CLEAN and EMS profiles — not just in an emulator.
  3. 0

    LINES OF MS CODE

    No Microsoft code: the FreeDOS kernel and shell, with 30 original 16-bit real-mode programs on top.

GET IT RUNNING

YOU GET a bootable 1.44 MB floppy image · v1.0-alpha5

  1. Download the floppy image from the v1.0-alpha5 pre-release. It is a validation build, not 1.0 yet.
  2. Boot it in DOSBox-X; for accuracy, boot it in 86Box set up as a 386SX.
  3. On a real 386SX or better with VGA, write it to a 1.44 MB floppy and boot from it: the same disk installs and rescues.
DOWNLOAD v1.0-alpha5 (opens in a new tab)

README BADGE

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

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 SYSTEMCastalia 92VGA · MODE 13h · VS Windows 95
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