K-DOS
- Year
- 1981
- Publisher
- K-Byte (a division of Kay Enterprises Co., Troy, Michigan)
- Type
- DOS
- Category
- Disk operating system (command-line, memory-resident, DOS 2.0S-compatible)
- Developer
- Marcus Watts
- Language
- 6502 machine language
- Requirements
- Atari 400/800 with disk drive; 32K or more needed for the copy utilities, 48K recommended
- Tags
- dos, k-byte, kay-enterprises, command-line, resident, monitor, dos-2-compatible, 810, 1981
Overview
K-DOS was one of the first commercial replacements for Atari's own DOS 2.0S. It came from K-Byte, the software division of Kay Enterprises in Troy, Michigan, which was also known for the games K-Razy Shoot-Out and K-Razy Kritters. The program was written by Marcus Watts, then a computer science student at the University of Michigan, and carries a 1981 copyright. Creative Computing's review gave the price as $89.95.
K-DOS kept DOS 2.0S's disk format, so files moved freely between the two systems. What it changed was the way you worked with it. Atari DOS loaded a separate menu program every time you typed DOS in BASIC. K-DOS stayed in memory all the time and took typed commands, so you could manage files without leaving the language you were using. It was aimed squarely at programmers, and it charged them for the privilege in RAM.
Features
- Command line, not menus. Commands are English words that can be abbreviated:
DEL,REN,LOC,UNL,AP(append),DISK(duplicate). The syntax is forgiving. Spaces can replace commas, lower case works, and defaults are filled in whenever possible. Wildcards are supported. - DOS commands from inside a cartridge. You choose a "DOS character" (a comma by default) with the
DCcommand. Then, at the BASIC, PILOT or Assembler Editor prompt, any line starting with that character is passed to K-DOS. You can list a directory or delete a file without leaving BASIC. - English error messages. Instead of a bare error number, K-DOS prints a message.
ERfollowed by a number prints the text for an error code, which is useful for decoding errors that BASIC reports. - A machine-language monitor.
ExamineandAlterdisplay and change memory in hex and ATASCII,REgistershows and changes the 6502 registers, andLoad,RunandSavehandle binary files. A/Mswitch prints a map of where each segment loads.Gostarts code at an address, andProceedcontinues after a breakpoint with the registers untouched, which makes it handy for debugging. - Crash protection. The 6502
BRKinstruction is caught and returns you to DOS with a message instead of hanging the machine. The BREAK key stops disk I/O cleanly, and K-DOS retries marginal sectors before giving up. Pressing SYSTEM RESET with START held goes straight to DOS and skips the cartridge. - Control of the system.
COLDandWARMrestart the cartridge,LOMEMmoves the bottom of free memory (to reserve space for machine code or to test a program in less RAM),CLOSEcloses files and silences sound, andRESETreloads the 850 handler. A null device,N:, swallows output for testing. - Extensible. User Defined Commands (
UDC) add new commands from disk files. The single-drive copier (TRANS), the disk duplicator (DISKDUP) andHELPare themselves UDCs.TRANSwith the/SIRGswitch also copies files between disk and cassette. - 850 support built in. If an 850 Interface Module is switched on, K-DOS loads its R: handler at boot without needing an AUTORUN.SYS file. It still runs AUTORUN.SYS if one is present.
INIT formats a disk and writes DOS in one step, and APPEND fills the free space in a file's last sector instead of starting a new one as Atari DOS did. KILL removes K-DOS's hooks into the screen editor and SIO if a program conflicts with them. REVIVE puts them back.
The memory cost
The price of a resident DOS was memory. K-DOS needs about 14K, including 2K for the 850 handler. With BASIC in a 40K machine, Creative Computing's reviewer, Sheldon Leemon, measured 25,228 free bytes against 32,274 under Atari DOS. Low memory started above $3000. Machine-language programs built to load just above DOS 2 could therefore collide with K-DOS. The supplied SQUEEZE program removes the English messages and, if you choose, the UDC tables to win some of that space back. When Antic reviewed Deep Blue C, whose compiled programs start at $3000, it noted that K-DOS "has to be squeezed" first.
Reception
Leemon's review praised K-DOS as convenient and well suited to programmers who mix BASIC with machine code. He criticised the documentation, which was well bound and readable but brushed past the more advanced commands. It also supplied equate files for DOS entry points without real examples of how to use them. His verdict was that serious programmers with memory to spare would like it, and casual users would not miss it.
Using it today
K-DOS disk images circulate in the usual Atari archives, though an original master disk is reported to be scarce. It runs on any machine or emulator that can boot Atari DOS 2.0S, and because the file format is the same you can read and write ordinary DOS 2 single-density disks. Its interest today is mainly historical: an early example of a command-line DOS with a monitor built in, a few years before OS/A+, DOS XL and SpartaDOS made that style common.
Credits
- Picture: The spiral-bound K-DOS Handbook, which came with a pocket command summary card. — K-DOS manual cover scan from AtariMania (Cover art © K-Byte — used for identification/commentary)
- Sheldon Leemon, "K-DOS — An Alternative to Atari DOS", The Creative Atari (Creative Computing) — Sheldon Leemon; AtariArchives.org
- K-DOS Handbook (K-Byte), Internet Archive item atari_kdos_en (OCR text) — K-DOS Handbook (K-Byte); Internet Archive
- comp.sys.atari.8bit FAQ (Michael Current) — 7.3.3 (K-DOS) — Michael Current (comp.sys.atari.8bit FAQ)
- AtariMania — K-DOS — K-DOS manual cover scan from AtariMania (Cover art © K-Byte — used for identification/commentary)
- Antic Vol. 2 No. 10 — Product Reviews (Deep Blue C note that KDOS must be squeezed) — AtariMagazines.com (Kevin Savetz)
