First post, by Acorns
os8088 - An OS for the IBM PC @ 4.77MHz
Pre-emptive multi-tasking windowed OS
http://www.os8088.com
Releases: https://github.com/jggonz/os8088/releases
I'm one of the contributors to os8088; posting here about it as it has no thread yet.
os8088 is entirely AI written - I think I am the only one who had manually contributed any code, and I recently had the AI rewrite those sections after removing them. It is heavily directed; I'll make a later post about the development process.
There are appropriate places for an AI discussion and debate; but I'd prefer this thread not devolve into that.
The project was started roughly 3.5 months ago, in late July/early Aug of 2026. The OS is not based on DOS, or any previously existing code - it is a brand new, from scratch OS. The OS is designed to be FAST on a 4.77MHz 5150 - in general, it holds up to "modern" speed sensibilities. Boots in as little as 9.5s from a floppy - or 3.5s from a hard drive.
The kernel and most apps are written in assembly; a C compiler exists but is not very efficient yet. The OS is a multitasking, pre-emptive (live switchable to cooperative) windowed OS vaguely in the style of System 1.
Kernels
There are three kernel builds (exact used/free memory sizes are subject to change as we develop):
Small: an 8088 w/ 128KB - 256KB RAM
- Real mode
- Reduced hardware support in exchange for running on low RAM systems
- Resident kernel size: 56KB
- 70.5KB free heap on boot on a 128KB system (1.5KB is interrupt vectors/BIOS data)
- 92.5KB free heap with the option ROM (stores part of the OS in the 5150's ROM sockets)
- Runs all of the smaller games/applications
- No drivers, no VGA, no double click file open; most of the rest of the OS is still there
Big: an 8088 to 286 w/ 256KB - 640KB RAM
- Real mode
- The "standard" os8088
- Most work is focused here
- Resident kernel size: 90.5KB
- 548KB free heap when booting on a Hercules/CGA 640KB system, before drivers
- 585KB free heap with the option ROM, or HMA (some drivers can fill the rest of HMA)
- Hercules/CGA/EGA/VGA display support
- Driver support - dynamically reloadable without reboot
- VGA (autoloaded if detected)
- Mouse (Serial, PS/2, a handful of USB mice, keyboard acts as a mouse if nothing else) (autoloaded if detected; serial is polled for until found if not detected at boot)
- Keyboard (XT, AT, PS/2) (assumed present)
- Sound (Sound Blaster, AdLib, Covox) (autoloaded if detected)
- Hard drives (BIOS/option ROM/IDE) (autoloaded if detected)
- Ethernet (NE2000)
- File/network sharing with DOS over parallel
- RAM drives
- Remote drive mounting over HTTP
- CD-ROM
- XMS (autoloaded if detected)
- EMS (LoTech style, PicoMEM)
- VESA (up to 1024x768)
- PicoMEM V1/V2 (Sound, Ethernet, USB mouse, EMS, hard drive/floppy) (requires a custom firmware for sound and optimal hard drive speed; it's in the release tools)
Mega: a 286+ w/ 1MB - 16MB RAM
- A protected mode kernel
- The newest project; currently the Game Boy emulator is the only thing taking full advantage of it
- Everything Big has, plus further speed optimizations
- Resident Kernel size: 131KB
- 890KB heap free on boot, on a 1MB system
Some Features
- Actual multi-tasking - multiple programs run at once, and can run and draw when not in focus
- Pre-emptive multi-tasking on an 18.2Hz PIT
- Live switchable to cooperative mode
- RTC/Clock
- Motorola MC146818 / Dallas DS12885 (70h/71h)
- NS MM58167 (SixPakPlus) (2C0h)
- Ricoh RP5C01 / Toshiba TC8521 (2C0h)
- int 1Ah (if the BIOS provides it)
- Drive detection
- Floppy and hard drive; including drives not matching the BIOS configuration
- Single drive operation
- The OS is memory resident after boot
- Single floppy drive usage with a non-system disk in the drive after boot is a first class consideration
- Only configuration/system utilities/unloaded drivers remain on the system disk and are read on use, the rest is in memory
- Memory management
- Claim memory in paragraphs, with 512B increments (easy DMA alignment; arbitrary paragraph claiming is implemented but not enabled)
- Kernel low, programs high
- Ranked purgeable claims
- Dynamic window, disk and module caches as purgeable claims
- Compaction, purging on demand
- All claims not actively being executed in/written to by DMA are movable and compactable
- Hibernation
- Save memory state to a disk and resume, with live program and driver resumption
- Window management
- Minimize, maximize
- Drag and drop positioning - move windows around, and use a shadow buffer to avoid needing a full redraw
- Resizable, with drag and drop resizing (per program opt-in)
- Damage rects - redraw only what has changed
- Save under - cache framebuffer images to replay, redrawing a window only when it has actually changed
- UI elements
- Shared buttons with press animations
- Scrollbars, with draggable live scrolling
- Radio buttons, checkboxes, textboxes, etc
- Graphics
- Blits, framebuffer compose, lines, rects, points, icons
- Graphics calls handled transparently to an application across display types
- BIOS font OR a custom font (at build time, currently) for use in graphics modes
- Desktop
- Disk drive icons
- Shortcuts
- Drag and drop icon repositioning
- Sticky apps on the desktop
- Extended desktop
- Any two displays at different memory addresses - so Hercules + any one other
- Drag windows across the displays, straddle windows between two displays
- Programs with display preferences automatically resize and reflow for the smaller display they are on
- Programs with a fullscreen display preference autopick their preferred display, else they go to the one they are mostly on
- Packages
- Single or multiple 'parts' to hold code/data
- Multiple 64KB code segments
- Parts support compression (LZ4/LZB)
- Data parts (larger than 64KB), lazy loadable to support on the fly data loading
- Embedded icons and file type associations per package
- File management
- Transparently use any disk type, including redirectors (HTTP, remote DOS drive, RAM drive, etc), to manage files
- View, recursive copy, move (including by relink), delete, rename, create new directories and files
- Icons per application and file type
- File type associations on an OS that is fully intended to boot and run from swappable disks
- Mount .img as a drive
- Clone disks, disk to .img, .img to disk
- Compress/uncompress (LZ4/LZB)
- Rejoin a split file (including across multiple disks)
- See disk/file operation progress as it occurs
- Create links by alt-dragging any file
- Autostart
- Place any link into /AUTOSTRT to autostart it
- Hard drive management
- Partition, format, install to a hard drive
- Boot from a hard drive in ~3.5 seconds
- Primary and logical partitions, up to 2GB
- Theming
- Style, color scheme, window titlebar style
- Dock positioning and hiding
- Window open/close/minimize animations
- Screensaver (Cube, Fish, Starfield, Shapes, Blank)
- Task viewer
- View running programs
- View a RAM map and RAM usage
- Control Panel
- Configure the display, drivers and other OS options