ASMOS 3.9.4 - 32-bit x86 OS for the 386-486 era
Posted: Sun Nov 29, 2026 1:03 pm
Hi there! I wanted to advertise my custom OS called ASMOS. It's a 32-bit x86 OS for the 386-486 era, written from scratch in assembly and C. I made it look and feel like a desktop os from around 1990, having been inspired mostly by Windows 3.1 and 95 and Mac System 6 and 7. I tried to target the low-end 386 computers. That's why the minimum requirements are a 386SX and only 2MB of RAM. It fits on one floppy only, so the disk usage varies anywhere from 700kb to 1.2mb (depending on the apps you choose during installation).
As for the features, it has a custom 2-stage bootloader, kernel and everything a custom OS should have. I won't get into details because much of the architecture has been implemented from the wiki and fixed with Ai where I couldn't wrap my head around why it wasn't working, booting or crashing if you did some actions in a certain order. What makes it quite different from the vast sea of custom OSes is that it is a fully usable 1990-style desktop (overlapping windows, menu bar, desktop icons, apps, installer) that deliberately targets the 386 era and stays within tight resource limits (2 MB RAM, no external kernel libraries, pure C and assembly. It's only got FAT12 and FAT16 + ISO 9660, PS/2 and serial mouse (+joystick), Sound Blaster (1.x, 2.0, 16) + OPL2, NE2000 networking with DHCP/TCP/DNS/Gopher + an http browser (no JS, CSS or https; I had to get it running on a 16mhz 386 so no modern stuff), app isolation via 386 paging, APM shutdown, multiple graphics modes (320x200 up to 800x600 with 16 or 256 colours with mode 13h or VESA frame buffers if the graphics card has VBE 1.0+), and lots more.
Someone has pointed out a few months ago that they can't build apps without integrating them directly inside the kernel, so I decided to make some kind of external app loading system, while still remaining in ring 0 (I could have moved to ring as the tutorial on the wiki I was following thought me how do actually do it, but I was against it because my idea was an alternate OS that could have existed in the 90s. That's how I came app with the .APP file (sorry Tim Apple for stealing your app extension), a custom relocatable binary format. When you open one .APP file, it reads the .APP header (magic ASMA, version, flags, sizes, name, entry points, validates everything carefully, allocates memory for the image (code + data + BSS), copies the code/data, zeroes BSS, applies the relocation table so the code can run at its loaded address (linked at 0) and registers an app_descriptor so the rest of the OS (desktop, Apps menu, Monitor, shell) sees it. To actually launch it, it creates per-instance state, gives the app its own small heap for kmalloc/kfree with paging enabled (by default, but you can turn it off in the settings). Each instance gets its own page directory:
Page 0 unmapped
Other apps’ memory unmapped
Kernel code/constants made read-only (on 486+)
When the last instance of an app exits, appload_gc can free its image.
After I fully implemented and tested it all, some guy asked if he can build apps without having the ASMOS source code downloaded on his machine, so I also implemented an SDK you can get via ~make sdk~. In the next release (version 4.0.x), I'll add it directly in the downloads page.
As for the UI, I initially had a weird way of making apps where each app would draw its own widget (you can already imagine the spaghetti code duplications), but I managed to create a win32-like api that simplified that A LOT (labels, buttons, edits, lists, trees, scrollbars, status bars, etc). Everything is explained more detailed in the UI_TOOLKIT.md in the /docs folder. Again, sorry for using AI, but writing such long documentation in English is very hard for me.
The driver selection is relatively limited at the moment. I implemented a general gpu driver that works on most, if not all gpus from that era, a SoundBlaster Driver that works with all versions 1.0 up to 16, a NE2000 that surprisingly works quite well without having to restart to get back online, ISO9660 for CD-ROM support (only reading, no writing CD-RW) and more (PS/2, serial, parallel for printing, ata, etc).
A significant portion of the code (60-70%) and the longer documentation was written with AI assistance. At first, I started only from this wiki, but I got to a point where AI help was necessary. I still had to understand, debug, and fix everything myself (especially the boot process, 386 paging, and the networking stack). I’m not claiming to be a pure hand-written genius programmer, just a student proud of the result. In the last commit, I fixed (by myself) lots of UI bugs the AI had left there when upgrading from my spaghetti code to the Win32 control kit.
Repo: https://github.com/drclcomputers/ASMOS
It boots in 86Box (386SX-16 and up), QEMU and Bochs. Real hardware testing is still pending, as I'm trying to get a working 386 or 486 computer from my school's IT department. They still have a few dozen gathering dust in a closet, but nobody knows exactly where, so I have to wait until the IT head and the old teachers remember. I'd buy one, but I am not spending 400$ for a 35 years old computer that may break in the few minutes after switching on the power supply.
Thanks for reading this. I invite you to check it out, test it and even run in on real hardware if you're willing to. I'd be happy to answer technical questions or take feedback (both positive and negative). One thing I won't tolerate it just being a jerk yelling "slop" calling me stupid, without any further arguments. That's where I draw the line.
As for the features, it has a custom 2-stage bootloader, kernel and everything a custom OS should have. I won't get into details because much of the architecture has been implemented from the wiki and fixed with Ai where I couldn't wrap my head around why it wasn't working, booting or crashing if you did some actions in a certain order. What makes it quite different from the vast sea of custom OSes is that it is a fully usable 1990-style desktop (overlapping windows, menu bar, desktop icons, apps, installer) that deliberately targets the 386 era and stays within tight resource limits (2 MB RAM, no external kernel libraries, pure C and assembly. It's only got FAT12 and FAT16 + ISO 9660, PS/2 and serial mouse (+joystick), Sound Blaster (1.x, 2.0, 16) + OPL2, NE2000 networking with DHCP/TCP/DNS/Gopher + an http browser (no JS, CSS or https; I had to get it running on a 16mhz 386 so no modern stuff), app isolation via 386 paging, APM shutdown, multiple graphics modes (320x200 up to 800x600 with 16 or 256 colours with mode 13h or VESA frame buffers if the graphics card has VBE 1.0+), and lots more.
Someone has pointed out a few months ago that they can't build apps without integrating them directly inside the kernel, so I decided to make some kind of external app loading system, while still remaining in ring 0 (I could have moved to ring as the tutorial on the wiki I was following thought me how do actually do it, but I was against it because my idea was an alternate OS that could have existed in the 90s. That's how I came app with the .APP file (sorry Tim Apple for stealing your app extension), a custom relocatable binary format. When you open one .APP file, it reads the .APP header (magic ASMA, version, flags, sizes, name, entry points, validates everything carefully, allocates memory for the image (code + data + BSS), copies the code/data, zeroes BSS, applies the relocation table so the code can run at its loaded address (linked at 0) and registers an app_descriptor so the rest of the OS (desktop, Apps menu, Monitor, shell) sees it. To actually launch it, it creates per-instance state, gives the app its own small heap for kmalloc/kfree with paging enabled (by default, but you can turn it off in the settings). Each instance gets its own page directory:
Page 0 unmapped
Other apps’ memory unmapped
Kernel code/constants made read-only (on 486+)
When the last instance of an app exits, appload_gc can free its image.
After I fully implemented and tested it all, some guy asked if he can build apps without having the ASMOS source code downloaded on his machine, so I also implemented an SDK you can get via ~make sdk~. In the next release (version 4.0.x), I'll add it directly in the downloads page.
As for the UI, I initially had a weird way of making apps where each app would draw its own widget (you can already imagine the spaghetti code duplications), but I managed to create a win32-like api that simplified that A LOT (labels, buttons, edits, lists, trees, scrollbars, status bars, etc). Everything is explained more detailed in the UI_TOOLKIT.md in the /docs folder. Again, sorry for using AI, but writing such long documentation in English is very hard for me.
The driver selection is relatively limited at the moment. I implemented a general gpu driver that works on most, if not all gpus from that era, a SoundBlaster Driver that works with all versions 1.0 up to 16, a NE2000 that surprisingly works quite well without having to restart to get back online, ISO9660 for CD-ROM support (only reading, no writing CD-RW) and more (PS/2, serial, parallel for printing, ata, etc).
A significant portion of the code (60-70%) and the longer documentation was written with AI assistance. At first, I started only from this wiki, but I got to a point where AI help was necessary. I still had to understand, debug, and fix everything myself (especially the boot process, 386 paging, and the networking stack). I’m not claiming to be a pure hand-written genius programmer, just a student proud of the result. In the last commit, I fixed (by myself) lots of UI bugs the AI had left there when upgrading from my spaghetti code to the Win32 control kit.
Repo: https://github.com/drclcomputers/ASMOS
It boots in 86Box (386SX-16 and up), QEMU and Bochs. Real hardware testing is still pending, as I'm trying to get a working 386 or 486 computer from my school's IT department. They still have a few dozen gathering dust in a closet, but nobody knows exactly where, so I have to wait until the IT head and the old teachers remember. I'd buy one, but I am not spending 400$ for a 35 years old computer that may break in the few minutes after switching on the power supply.
Thanks for reading this. I invite you to check it out, test it and even run in on real hardware if you're willing to. I'd be happy to answer technical questions or take feedback (both positive and negative). One thing I won't tolerate it just being a jerk yelling "slop" calling me stupid, without any further arguments. That's where I draw the line.