This is the last of three articles about emu_x86. Part 1 shows how to use it and Part 2 covers the tools. Here I describe how it works inside, and the bugs that taught me the most.

The two PCs

IBM PC/XT386 PC
CPUIntel 8088, 4.77 MHz386 (also 486, Pentium or Pentium II)
FirmwareGLaBIOSSeaBIOS and SeaVGABIOS
VideoMDA and CGAVGA with VESA modes up to 1600x1200
SoundPC speakerPC speaker, Sound Blaster 16 with FM
DisksFloppies, a hard disk, a CD-ROMFloppies, an IDE hard disk, a bootable CD-ROM
NetworkNE1000RTL8029 or NE2000
RAM640 KB16 MB by default, up to 512 MB in the page

One core, two hosts

The emulator core is portable C with no calls to the operating system. That is what lets the same code run in two places: in the browser, compiled to WebAssembly with Emscripten, with a page of plain HTML and ES modules around it, and on Linux, as command line programs and a native SDL2 window.

This continues emu_x86 Part 1, which showed how to use the emulator page. An emulator alone is not enough to work with old software. You need to get files in and out of the disk images, to look inside a program that crashes, to put the PC on a network, and to run things without clicking. This part covers the tools I built for that. The disk manager, the network and emuctl need emu_x86 on your own computer: the online demo has none of them.

I have just finished a new project: emu_x86, an emulator of two classic PCs: an IBM PC/XT (Intel 8088) and a 386 PC (it can also be a 486, a Pentium or a Pentium II). The same C code runs in a web page, compiled to WebAssembly, and on Linux. So you can open a link and have a DOS computer on the screen. Nothing is installed on your computer.

This is the last of three articles about emu_ns, the emulator of the North Star Advantage. Part 1 described the machine and the core, and Part 2 the disks. Here I cover the tools for looking inside a running program, the serial board, copy and paste, and the ESP32 version.

The debugger

To understand what a program does on the Advantage, I wanted to stop it and look. The debugger opens in its own window from the menu of the emulator page.

This continues Part 1, which described the machine and the core of emu_ns. An emulator is only as useful as the software you can run on it, and on this machine software means disks. This part is about disk images, the hard disk board, a tool that reads the images, and a disk full of CP/M programs.

Disk images

There are two kinds of image:

  • Floppy, .NSI: 179,200 bytes for a single-sided disk and 358,400 bytes for a double-sided one.
  • Hard disk, .NHD: whole 512-byte sectors, from 8 KB up to 48 MiB, starting with a label of two bytes, 00 FF.

The images are not in the code repository. They live in a separate one, emu_ns-disks, which is public and also serves as the disk host of the browser version: the page reads a catalog from it and fetches an image only when you mount it. In the browser, what you change or add stays in your browser, and a button discards your copy so the original comes back. Nothing on the disk host changes.

After the restoration of my real NorthStar Advantage, I wanted to be able to run its software without the machine on the table. So I built an emulator: emu_ns. It emulates the North Star Advantage, a Z80 computer with CP/M and NSDOS. The screen, the keyboard, the disks, the debugger and a serial terminal are web pages, so there is nothing to install on the client.

You can try it now: CP/M BASIC starts from a floppy, and there is a version with the 30 MB hard disk (the image is 34 MB, so it takes a moment). Click the screen and press Enter at the LOAD SYSTEM prompt.

Old DOS Days 1

- 3 mins read

I’m working on an emulator for old dos systems, trying to let an agent play with it. Maybe let it finish some projects that I started back in the day.

By the way, I have reviewed some of my old DOS CLIPPER projects; The disk was not in very good condition, and many files were corrupted or unreadable but I was able to recover a few of them and it brought back a lot of memories.

A small change to an SGI workstation

I changed the indicator LEDs in my SGI Octane’s light bar. I chose blue LEDs and added two resistors to keep their current within a safe range.

The light bar is a narrow assembly in the front of the case. Its lights make the computer’s status visible from the outside. I wanted to replace the dead lights and give them a blue glow.

A restoration that took more than a year

I bought this NorthStar Advantage on Wallapop in 2024. The seller told me that the keyboard had a fault. But at power-on, the computer still displayed a message on the screen. As always trust in the seller’s words, was an act of faith.

Indeed, buying vintage computers is always a bit of a gamble but be prepared for surprises when dealing with vintage hardware.

Looking more closely at the drives

This continues NorthStar Advantage Restoration Part 1, with a closer look at the drive hardware and how floppy disks mark sectors.

Many computers from the late 1970s and early 1980s used 5¼-inch floppy drives. The Tandon TM100-2A is one example. These drives can become difficult to use as they age. Their radial alignment—the position of the read/write head across the disk’s tracks—can shift. If it moves far enough, the drive may not read or write disks reliably.