SpartaDOS X (or SpartaDOS 4.0) is a disk operating system for the Atari 8-bit computers that closely resembles MS-DOS. It was developed and sold by ICD in 1987–1993, and many years later picked up by the third-party community SpartaDOS X Upgrade Project, which still maintains the software.
History SpartaDOS X is a successor to SpartaDOS 1.0, 2.0 and 3.0 (also ICD products). SpartaDOS X 4.0 was originally developed by Michael Gustafson in 1987–89, and shipped on 64k ROM cartridges by ICD, Inc. up to version 4.21. The cartridge contained an additional cartridge slot on itself, so that it was possible to plug in another cartridge, such as ICD's R-Time 8 battery-backed clock, a language cartridge (Action!, MAC/65 etc.) or a game cartridge, and use it in conjunction with the DOS. In 1992, Atari Corporation dropped all the official support for the Atari 8-bit computers, and so did ICD shortly after that. The rights for the 8-bit ICD inventory were purchased in November 1993 by Michael Hohman, officially as Fine Tooned Engineering. FTE released a slightly updated version 4.22 on 5 November 1995, and, after two or three years, disappeared together with all the items and rights it owned. Ten years later development of SpartaDOS X was picked up by its enthusiasts, as SpartaDOS X Upgrade Project. It resulted in several unofficial revisions of the software, incorporating many of the utilities written since 1992, cleaning many identified problems and including numerous improvements. As of 2024 the published versions are:
4.31 (2005) 4.39RC (2006) 4.40 (a leaked-out beta, 2006) 4.41 (Feb. 2008) 4.42 (Dec. 2008) 4.43 (Apr. 2011) 4.44 (Jun. 2011) 4.45 (Nov. 2011) 4.46 (Jan. 2013) 4.47 (Feb. 2015) 4.48 (Jul. 2016) 4.49 (Apr. 2020) 4.50 (Dec. 2024) 4.51 (Sep. 2026)
Characteristics
General SpartaDOS X is a non-multitasking operating system intentionally modeled after and closely resembling MS-DOS in look and feel. It consists of the kernel, the system library, several types of drivers, the shell (called COMMAND.COM) and a number of utility programs. SpartaDOS X is written in 6502 machine language and fits into a 128k file-oriented ROM cartridge.
Supported storage devices
There is full support for Atari-type serial disk drives as well as for parallel hard drives, as long as they conform to Atari standards (i.e. as long as they use the "plug-and-play" Parallel Bus Interface (PBI) mechanism implemented in the ROM OS of the XL/XE computers). For those which do not, and for ramdisks and the like, up to four block-device drivers can be installed. Nonstandard hard disk interfaces are handled by specialized drivers. The maximum number of drives (or hard disk partitions) connected at the same time is 15 as of version 4.40 (9 in earlier versions).
Kernel built-in functions The kernel allows to open files and directories in read-only, write-only, write-append and read-write modes. It also maintains environment variables, and programs may request files to be searched through directories specified in $PATH. The variables also control some settings for the DOS as well as for programs, for example the format of date and time to be displayed (the choice is between the "European" DD-MM-YY and 24-hour clock, and "American" MM-DD-YY and 12-hour clock).
The file system drivers Thanks to some form of virtual filesystem, practically any filesystem can be directly accessed, if an appropriate filesystem driver exists and was loaded to the memory. Up to eight such drivers can be installed at a time. The main filesystem driver (fitting within less than 4.5 KB) can search directories (FFIRST/FNEXT), read/write files (FREAD/FWRITE), retrieve or change the current position within a file (FTELL/FSEEK), retrieve the file's length (FILELENG), delete files and directories (REMOVE/RMDIR), rename files and directories (RENAME/RENDIR), make directories (MKDIR), change attributes in files and directories (CHMOD), change current directory (CHDIR), retrieve path to current directory (GETCWD), collect information about the disk (GETDFREE), and make a binary file bootable (SETBOOT). It also maintains the queued buffer cache that can hold up to 16 sectors (8 KB) at a time.
The SpartaDOS file system
The proprietary file system format, called SpartaDOS FS (unrelated to and not compatible with MS-DOS FAT), offers full support for subdirectories, MS-DOS-like attributes (AHPS: Archived, Hidden, Protected, Subdirectory), modification date and time stamps, random access to data within a file, sparse files. The optional support for symbolic links has been added as of SpartaDOS X version 4.50: the required system extension (SYMLINK.SYS) is available as a part of the collection of additional programs (called "SpartaDOS X Toolkit") which is distributed along with the system itself. The file naming convention is upper-case only 8+3 (this scheme, inherited from CP/M, is normal on Atari). The directory structure is hierarchical, there are no other than practical limits in nesting directories. A directory can contain up to 1423 entries of files and other directories. Directory separators as MSDOS-style '\' characters or native '>' characters, so pathnames look like: D1:\SUBDIR\FILENAME.EXT or D1:>SUBDIR>FILENAME.EXT. MSDOS-stype '..' or native '<' refers to the parent directory. CHDIR with no parameter - the equivalent of PWD - always displays the current directory with '\' characters. The file system is 16-bit: a drive can contain up to 65,535 logical sectors (sector 0 does not exist on Atari disks). The logical sector size is 128 or 256 bytes in earlier versions, and 128, 256 and 512 bytes as of v. 4.40. This makes a maximum capacity of 16 MB per partition in earlier versions, and 32 MB as of v.4.40. A 4 GB per disk – by making sector clusters, up to 65,536 bytes per cluster – is theoretically possible, but not yet implemented.
The DOS library The system library contains a binary loader supporting standard, address-dependent Atari binaries as well as SpartaDOS X address-independent ("relocatable") binary files. It also facilitates such tasks as error handling, parsing the command line, as well as managing memory, file and device resources etc. The library also contains a menu-driven disk formatter, that can be invoked at any time, not only from the DOS' Command Processor, but also from within an application program. The entire library occupies 24 KB of the cartridge (in three banks, 8 KB each) and can be switched off as necessary to release some memory.
… excerpt ends here. Continue reading the full article.





