Atari DOS 2.0S
- Medium
- Disk
- Year
- 1980
- Publisher
- Atari, Inc.
- Type
- DOS
- Category
- Disk operating system (menu-driven)
- Developer
- Shepardson Microsystems (Paul Laughton, FMS); Keith Ball of Atari (DUP menu)
- Language
- 6502 machine language
- Requirements
- Any Atari 400/800/XL/XE with 16K+ RAM and an 810, 1050 or compatible disk drive
- Tags
- dos, atari-inc, shepardson, disk, 810, single-density, menu, dos-2
Overview
Atari DOS 2.0S ("Disk Operating System II, Version 2.0S", copyright 1980) is the DOS most Atari 8-bit owners met first. It came on the 810 Master Diskette II (CX8104) shipped with 810 and 1050 drives made between 1981 and 1983, and it was also sold on its own. The "S" stands for single density: 40 tracks of 18 sectors of 128 bytes, giving 707 usable sectors and about 88K of data per disk.
DOS 2.0S was never fast or clever. It became the standard because it was Atari's official DOS and the first major one available, so software companies wrote to it. Its binary file format, directory layout and D: handler behaviour were copied by almost every later DOS, from DOS 2.5 and MyDOS to SmartDOS and TOP-DOS. Antic's 1985 survey of DOSes called it "a good, reliable product" whose popularity came from being first rather than from being better.
How it is built
DOS 2.0S splits Atari's earlier DOS I into two files:
- DOS.SYS, the File Management System (FMS). It loads at boot and stays resident, providing the
D:device for BASIC and other programs through the OS's CIO routines. It talks to the drive directly through SIO rather than through the OS's resident disk handler. - DUP.SYS, the Disk Utility Package. This is the lettered menu, and it is loaded only when you type
DOSat the BASICREADYprompt, so it does not use memory while a program runs.
Because DUP.SYS loads over the bottom of user memory, going to DOS wipes out a BASIC program in RAM. The cure was MEM.SAV: if that file exists, DOS first saves the low part of memory to disk and restores it when you leave the menu. It is safe, but on an 810 it is slow.
DOS 2.0S also introduced AUTORUN.SYS, a binary file that runs automatically at boot. The Master Diskette's own AUTORUN.SYS loaded the R: serial handler from an attached 850 Interface Module.
The menu
Typing DOS brings up the familiar screen:
A. DISK DIRECTORY I. FORMAT DISK
B. RUN CARTRIDGE J. DUPLICATE DISK
C. COPY FILE K. BINARY SAVE
D. DELETE FILE(S) L. BINARY LOAD
E. RENAME FILE M. RUN AT ADDRESS
F. LOCK FILE N. CREATE MEM.SAV
G. UNLOCK FILE O. DUPLICATE FILE
H. WRITE DOS FILES
Some tips on the menu:
- A asks for a search spec and an output device.
*.BASlists only BASIC files, and answering the second prompt withP:sends the directory to the printer. - C copies between any devices, not just disks.
D:README,E:types a file on the screen, andE:,P:turns the keyboard into a crude typewriter (BREAK ends it). - D asks for confirmation on each file; add
/Nto skip the questions.*.*/Nerases everything. - H writes DOS.SYS and DUP.SYS to a disk so that it will boot. A freshly formatted disk is not bootable until you do this.
- J duplicates a whole disk sector by sector. Answer
1,1to do it with one drive by swapping disks. - O copies single files between disks with one drive, prompting for swaps.
- K, L and M save, load and run machine-language files. K has an
/Aoption to append to an existing binary file.
Wildcards do not match .SYS files when copying, so copy AUTORUN.SYS by name.
Tuning with POKEs
Several settings live in memory and are saved by option H:
- Location 1802 (
DRVBYT) is a bit map of active drives.POKE 1802,1gives one drive and frees memory; up to 8 drives can be enabled. The default, 3, means D1: and D2:. - Location 1801 (
SABYTE) sets how many files can be open at once (1–7, default 3). - Location 1913 controls write-verify: 87 is read-after-write (the default), 80 writes without checking. The usual fast-write trick was
POKE 1913,80and then H to save it.
Behind the scenes
Paul Laughton wrote the FMS for Shepardson Microsystems (SMI) under contract to Atari, building on his DOS I code. Keith Ball of Atari wrote the DUP menu. Before 2.0S settled down Atari let out several buggy preliminary versions (2.4, 2.5, 2.8 and "2.S"), and Creative Computing warned readers to use only 2.0S.
On 25 February 1981 Optimized Systems Software (OSS), founded by ex-SMI staff Bill Wilkinson and Mike Peters, bought the FMS source from SMI. Wilkinson's book Inside Atari DOS (COMPUTE! Books, 1982) then published the full FMS source, which helped make 2.0S the most patched DOS on the machine. Percom's RFD40-S1 drive, the first third-party Atari drive, came with a program that built a double-density "DOS 2.0P" out of a copy of 2.0S.
The "Burst I/O" feature, meant to speed large transfers, is slightly buggy. Wilkinson published a fix in COMPUTE! #26, but that fix had its own bug; a corrected version appears in Ian Chadwick's Mapping the Atari.
Successors and compatibility
Atari's next DOS, DOS 3, abandoned the 2.0S format and was badly received. Atari returned to it with DOS 2.5 (1985), which reads and writes 2.0S disks and adds the 1050's enhanced density. A disk written by DOS 2.0S can be read by nearly every later DOS. The main exceptions are DOS 3 and SpartaDOS, which need conversion utilities.
Using it today
DOS 2.0S boots in any Atari emulator from a 90K single-density disk image (ATR). It is still the safest choice for old software that pokes into DOS memory, for type-in programs that assume 2.0S's memory layout, and for disks that 810 owners must read. For everyday use most people now prefer DOS 2.5 or MyDOS, which keep the same menu and file format but add density support and RAM disks. Keep a write-protected copy of the Master Diskette and work from copies made with option J.
Credits
- Picture: The Atari 810/1050 Master Diskette II (CX8104), which carried DOS 2.0S. — Disk scan from AtariMania (Fair use (packaging/screenshot for identification))
- comp.sys.atari.8bit FAQ (Michael Current) — 7.3.1 What is Atari DOS? — Michael Current (comp.sys.atari.8bit FAQ)
- The Creative Atari — Atari DOS — AtariArchives.org
- Antic Vol. 4 No. 3 (July 1985) — Everything You Wanted to Know About Every D.O.S., Eric Clausen — AtariMagazines.com (Kevin Savetz), 1985
- AtariMania — DOS 2.0S — Disk scan from AtariMania (Fair use (packaging/screenshot for identification))
