Transputer operating system loaded into a real hard disk
by Óscar Toledo G. Nov/30/2026
If you have been following my series of articles, I’ve been rediscovering my transputer software written between 1993 and 1996. One path for reviving it was running it on MS-DOS with my
transputer ISA board, and I made the programs to run the
Pascal compiler and
my early operating system based on Small-C ported to transputer.
However, I didn’t wrote yet the driver for my
full-blown operating system. There are two main options, running everything as a disk image (like in my
transputer emulator), or running everything from real hardware. I considered the most attractive option was running everything with the real thing.
Getting in route
Running in real hardware had its own considerations. My transputer operating system barely uses 4 megabytes of the hard disk, and current IDE drives are in the range of 160 GB. Somehow I didn’t want to waste so much space and a full drive for it. However, I remembered I had an Always IN2000 SCSI card attached to a Seagate SCSI hard drive.
When the PC hard drives started appearing around 1984, these were slow, clunky, and prone to failure. You had to use the PARK.COM utility to put the head in a place where it couldn't self-destroy. The SCSI standard (Small Computers System Interface) was designed to provided high-throughput transfers and stability. For a time, it was so fast that SCSI hard drives were commonly used in high-performance workstations like the Sun SPARCstation 1.
Always IN-2000 SCSI card.
My first step was mounting a 80286 motherboard in an old PC tower that was empty, I put along the VGA card I’ve been using (a Realtek one), a multiport card, and the SCSI card. Things went well, and the hard disk was recognized.
I never used this hard drive in the late 1998 because it contained a copy of Windows 95 that I wanted to run, however, it was configured for a certain unknown video card so it crashed. It contained incredibly old versions of Corel Draw and even AutoCAD from 1988, and some letters and spreadsheets generated in some defunct office, so nothing to preserve. The most amazing thing is that the drive still works in 2026!
Some of the files in the Seagate SCSI hard disk drive.
I started taking notes about the hard disk configuration, because SCSI hard drives are accessed in a logical fashion (sector 0 and beyond) but the Always IN2000 card provides a geometry (cylinders, heads, sectors) for the quirky PC BIOS that requires a hardware-like access pinpointing to cylinders (the circular track over the rotating plate), the head (a physical head over one of the plates), and the sector (the position in the circular track). Of course, these numbers are translated by the Always IN2000 ROM to the logical sector required by the SCSI hard drive.
Just after installing the hard disk in the tower and when I was deciding how to copy my operating system; suddenly I couldn’t get the hard disk to work!!!
I was surprised. If it worked right, why it didn’t worked now? Maybe the speaker magnet deleted the hard drive? The power supply is failing? The 50-pin SCSI cable is getting oxidized? The SCSI card has wrong configuration? The SCSI card chips are failing? My motherboard is incompatible with the SCSI card? A conflict of resources?
I dismounted and mounted again the hard disk several times, I tested another power supply connector, I changed the card configuration (thanks to the guys keeping the
Always IN2000 page info) I used a compressed oxygen canister over the ISA board (and the power supply, and the motherboard, and the video card, and the multiport card, and over the hard disk), and I checked every option in the BIOS for a resource conflict.
Six weeks later, somewhat disappointed, in Friday’s afternoon I coded the driver program preparing to read the hard disk image from a file. Not exactly what I wanted, and DOS is particularly inefficient, but better having something working than nothing working.
The Sunday after mass, I brought the PC again to my desk, ready to test my driver program. But before, I wondered that if the cable is getting oxidized, maybe I could put the hard disk in the other connector. I tried it to no avail. Then I noticed there’s a notch in the connector socket in the ISA card, and then my eye followed the red line to the hard disk, and I noticed the cable was backwards!!! In the past someone removed the notch in one of the connectors, so it could be inserted in any orientation in the ISA card! I put the cable in the right orientation, and et voilà! The hard disk booted again. Six weeks lost completely because when I mounted the hard disk in the tower case, I mistakenly changed the cable orientation (by the way, I’m glad the card didn’t burn out!)
The Seagate ST-1239N SCSI hard disk connected to the Always IN-2000 SCSI card.
Now for the next step, I was relieved to see that my emulated IDE drive card with SD memory was able to coexist with the Always IN2000 ISA card.
The IDE emulator card loaded with an SD memory.
Loading things
The hard disk image available in
my git has a size of 40 megabytes. Barely a glimpse of the current capacities, but anyone with a 286 computer can remember how long can take the formatting of a hard disk drive, or copying some “big” files.
The image files come from my
transputer os_final tree.
Using Hex Fiend I cut the first 4 megabytes of my operating system harddisk.img and copied it to the SD card, along the boot floppy disk image.
Copying the boot floppy disk image was pretty easy using the
RAWRITE utility. The image is
floppy.img
Running RAWRITE to prepare the boot floppy disk.
The next step was more tricky. I was going to rewrite the SCSI hard disk with the image of my operating system.
The hard disk is a Seagate ST-1239N and it has a real capacity of 195 MB, but advertised at the time as 200 MB. Hard disk manufacturers always divided the total bytes in the hard disk by one million of bytes instead of 1,048,576 bytes. The transputer operating system won’t have any idea of this, and it will see only 40 MB. Side note: You can
hear here the drive spinning up.
Thanks to the documentation available about the Always IN-2000 card, we know the geometry for a hard disk can be one of four depending on the hard disk capacity (see this
very old Linux page and search for
in2000). For this 195 MB hard disk, it is 64 heads and 32 sectors. Analytic minds will notice that 64 * 32 * 512 = 1,048,576 bytes or 1 megabyte. So the total cylinders in this particular drive are 195 (0-194).
As I didn't had an image utility, I had to write my own raw copy utility. Of course, for DOS and using
Tinyasm. I didn’t knew my assembler would be so useful!
My utility called
RAWCOPY.ASM is basically a fast hack. It opens a file using DOS services, reads the file in chunks of 16 kilobytes, and writes this directly to the SCSI hard drive (drive 0x81, and I’m glad Stanislavs still exists for the
int 0x13 reference and by the way, I wonder why I never could use Write Long Sector and Read Long Sector services), closes the file, and that’s all. I’m in love with the hard disk writing subroutine.
A word of warning, you shouldn’t use this utility until you revise that all the parameters are right because you could be erasing an useful hard disk.
.2:
mov ax,[cylinder]
mov ch,al
mov cl,6
shl ah,cl
mov cl,ah
or cl,1
mov dh,[head]
mov ah,0x03 ; 0x03 = Write sectors
mov al,32 ; 32 sectors.
mov dl,0x81 ; Drive D
mov bx,buffer
int 0x13
jb .2
It got stuck in the first run because I forgot that sector numbers start at 1. I added an OR CL,1 instruction. Then the source pointer was missing (MOV BX,buffer). I didn’t check for a 64k boundary crossing, and more importantly I was missing ORG 0x0100 🤡 required for a COM file.
It finally started running, and I calculated 256 period characters should be shown (a little more than 3 screen rows). However, it kept going! I discovered my subtraction from the file size for each block was 512 instead of 16384.
Running RAWCOPY to prepare the hard disk. You can see the files HD4.BIN containing the hard disk image, and FLOPPY.IMG containing the floppy disk image.
Goodbye to the data of Daniel, Denisse and America, and now my operating system was inside the hard disk.
I adapted easily
COMM3.ASM to use the BIOS services to access the hard disk, and the code for using an image file was put under a conditional %if directive.
Running it!
I put the transputer board inside the 286 computer and ran COMM3 MAESTRO2.CMG (making sure the boot floppy disk was inserted)
My blue transputer board installed into the 286 computer.
It complained of no operating system disk. I gave a look and found some errors in the translation of logical sector to physical floppy disk sector (it took the remainder of the division from dl instead of ah, and again sector number not based on 1)
It advanced enough to complain of a missing command file in the hard disk.
Boot code complaining of missing Interfaz.p.
I could track this to a wrong calculation of the “physical” hard disk sector. I debugged it and run it again, and I could see the three drives working.
Transputer operating system up and running.
Text editor displaying C code with syntax coloring.
I still had to debug the RAM disk because its root directory displayed trash. I finally tracked it to a single stosw instruction that should be rep stosw. Along it I found some services that returned a success code, but it wasn't required or the transputer would stall.
It is amazing how so fast runs my transputer operating system, and in fact the TRAM with 2 MB of RAM is slower than the 128 KB. original board from 1993 made by my father, because it used high-speed static RAM. This is noticeable when you scroll a full page of source code in the editor. The high-speed static RAM board reached 3/4 of the screen, while the TRAM with DRAM reaches half of the screen.
I'm glad I could run this software again. Basically, I've replaced the Z280 machine with a PC compatible, with the additional convenient feature of using again a SCSI hard disk drive. Circa 1996, it would have been still useful to get an extra kick from a 286 machine by using a transputer chip.
Find below the usage instructions for my operating system (verbatim copy from my
transputer emulator)
What do we have here?
This is
my full-blown operating system (Spring 1996), it includes a lot of features like multiple drives (A: is a 1.44mb floppy, B: is a 512K RAM disk, C: is a 40 MB hard drive, D: is a CD-ROM in ISO-9660 format). The code for accessing a SCSI CD-ROM drive isn't implemented.
The C compiler supports the full K&R syntax (except for static and extern, because there's no linker).
Some commands you can test inside the operating system:
DIR A:
DIR C:
AYUDA
MEM
C:EDITOR
Use F1 to access the help box of the visual text editor, and type F4 to open the directory browsing for reading text files.
Use C:CC to invoke the C compiler, C:ENS to invoke the assembler, C:EJECUTABLE to build assembler output into a working executable. There are instructions for compiling programs in the C:/Documentos/Programas.doc file (you could try self-compiling the C compiler!)
This is an example compilation of a program:
C:CC
N
N
C:/C/Hora.c
B:Hora.len
C:ENS
B:Hora.len
C:/Lib/stdio.len
[empty line]
B:Hora.e
C:EJECUTABLE
B:Hora.e
512
0
C:Hora.p
My emulator in C is way faster than this demo, but if you have a speedy computer and a good browser, this Javascript version can be very interesting.
3D modeler
You can run the 3D modeler using this:
c:modela
c:dibujo_3d/escena_tetera.3
Select a mode, press Enter, and then press Enter again to start displaying. There are more scenes in the C:/Dibujo_3D directory, each one starts with the name escena_. You can list the scenes using this command:
dir c:/dibujo_3d/escena*
Only the top left corner is viewable, as it depended on a 640x480 video mode
Ray tracer
You can run the Ray Tracer using this:
c:m3d
c:dibujo_3d/prueba
Only two M3D files are available in the C:/Dibujo_3D directory. You should enter the names without the M3D extension.
Warning: For some reason it never enters into graphic mode to render the image. I'm looking for the bug.
Multitasking
There is a small example of multitasking, you can have a clock at the top-right of the screen. Type this command:
@c:/Desarrollo/Reloj
Source code
Did you know that
paid open source developers create even better software? Fuel my creativity
with a coffee ☕. Or join the journey and become a monthly supporter, you’ll get even better content, and good karma! You can buy also my books in
Lulu.com, my ebooks and games in
my digital store.
Related links
Last modified: Nov/30/2026