SOS

The Sophisticated Operating System, or SOS,Apple III SOS Reference Manual: Volume 1: How SOS Works (PDF) by Don Reed, Apple Computer. 1982. is the operating system that was developed by Apple Computer for its Apple III personal computer. Pronounced "apple sauce", Apple SOS was first ready for release in September 1980,
 though the Apple III itself missed its original ship date and did not begin become available until November 1980.The Apple III Fiasco by Owen W. Linzmayer, Apple Confidential 2.0: The Definitive History of the World's Most Colorful Company, p.41-44. No Starch Press. 1994.
In 1985, co-founder Steve Wozniak, while critical of the Apple III's hardware flaws, called SOS "the finest operating system on any microcomputer ever".
==Technical details==
SOS is a single-tasking single-user operating system. It makes the resources of the Apple III available in the form of a menu-driven utility program as well as a programming application programming interface (API). A single program is loaded at boot time, called the interpreter. Once loaded, the interpreter can then use the SOS API to make requests of the system. The SOS API is divided into four main areas:
#File Calls: Create, destroy, rename, open, close, read, write files; set, get prefix (current working directory); set, get file information; get volume information; set, set mark, , and level of files
#Device Calls: Get status, device number, information of a device; send device control data
#Memory Calls: Request, find, change, release memory segment; get segment information; set segment number
#Utility Calls: Get, set fence (event threshold); get, set time; get analog (joystick) data; terminate.
The Apple III System Utilities program shipped with each Apple III computer. It provides the user interface of the operating system itself, for system configuration and file management. The System Utilities program is menu-driven and performs tasks in three categories:
#Device-handling commands: copy, rename, format, verify volumes (drives); list devices; set time and date
#File-handling commands: list, copy, delete, rename files; create subdirectories; set file write protection; set prefix (current working directory)
#System Configuration Program (SCP): configure device drivers.Apple III Owner's Guide (PDF), Apple Computer. 1982.
SOS has two types of devices it communicates with via : and . Examples of SOS character devices are keyboards and serial ports. Disk drives are typical block devices. Block devices can read or write one or more 512-byte blocks at a time; character devices can read or write single characters at a time.
===Boot sequence===
When powered on, the Apple III runs through system diagnostics, then reads block number zero from the built-in diskette drive into memory and executes it. SOS-formatted diskettes place a loader program in block zero. That loader program searches for, loads, and executes a file named SOS.KERNEL, which is the kernel and API of the operating system. The kernel, in turn, searches for and loads a file named SOS.INTERP (the interpreter, or program, to run) and SOS.DRIVER, the set of to use. Once all files are loaded, control is passed to the SOS.INTERP program.
ProDOS uses the same file system as SOS. On a disk formatted by ProDOS, the ProDOS loader and SOS loader are written to blocks zero and one, respectively. The ProDOS loader includes code that can execute on an Apple III, and which will chainload the SOS loader from block one, so SOS and ProDOS can co-exist on the same volume. Some software, such as ADTPro, makes use of this to store Apple II and Apple III versions of a program on the same disk, which is then bootable on both systems.
==References==
==External links==
*Apple III Resources at Apple3.org
**Apple III Manuals and Software
*Resources for the Apple /// personal computer at Washington Apple Pi
**The Apple /// FAQ File V5.1 Apple III and SOS history by David Ottalini
* at Wikipedia
Category:Discontinued Apple software
Category:Operating systems
Category:1980 introductions