Loading and Saving Atari Cassettes: CLOAD, RUN "C:", Boot Tapes and Tape Images

An Atari 410 Program Recorder, a beige cassette deck with six black piano-key buttons

In the USA the cassette was the cheap storage option until disk drives became affordable. In places where disk drives were expensive or hard to get, such as Britain, Poland and Czechoslovakia, tape was far more widely used. If you have a box of tapes, or a tape-only game in your collection, this guide explains how Atari cassettes work, the exact commands for loading and saving, how to keep a recorder healthy, and how to run tapes in an emulator or from modern hardware.

You need: an Atari 410, 1010, XC11 or XC12 program recorder (ordinary cassette decks won't work without an interface), Type I "normal bias" tapes, and for BASIC tapes a BASIC cartridge or an XL/XE with built-in BASIC.

1. How Atari tape works

Atari's recorders are not plain tape decks. The recorder itself turns the tones on the tape back into serial data before it reaches the computer.

  • Stereo tape. The right track carries data as frequency-shift keying: a mark (1) is 5,327 Hz and a space (0) is 3,995 Hz. The left track is ordinary audio, played through your TV speaker. Publishers used it for narration or music during loading (Best of Antic's "Audio While You CLOAD" describes doing exactly this).
  • 600 baud, in 128-byte records. Each record is 132 bytes: two $55 bytes the OS times to lock onto the tape's actual speed, a control byte ($FC full, $FA partial, $FE end of file), 128 data bytes and a checksum. A file starts with a 20-second mark-tone leader, which the OS skips by waiting about ten seconds before it starts reading.
  • Motor control. The computer starts and stops the motor through SIO pin 8, but only if PLAY is already pressed. It cannot tell PLAY from RECORD, or a moving tape from a stopped one.
  • Capacity: about 100K per 60-minute cassette. Average throughput, gaps included, is around 50 bytes per second, so a big program can take ten minutes to load.

Only one recorder can be on the SIO bus. The 410 and the XC12 have a captive cable and must sit at the end of the daisy chain. The 1010 has two SIO sockets and can go anywhere.

2. Loading software

Machine-language "boot" tapes (most games)

  1. Rewind the tape. Switch the computer off.
  2. Hold START and switch the computer on. It sounds one buzz.
  3. Press PLAY on the recorder, then press any key (RETURN is customary). The tape runs, and the program loads and starts itself.
  4. XL/XE note: these machines have BASIC built in and enabled unless OPTION is held at power-up. Machine-language games that object to BASIC need START and OPTION held together.

BASIC tapes

Boot to the READY prompt, wind the tape to the program, then type the command that matches how it was saved:

Saved with Load with
CSAVE CLOAD
SAVE "C:" LOAD "C:" (or RUN "C:" to load and run)
LIST "C:" ENTER "C:"

After you press RETURN the computer buzzes once. Press PLAY, then RETURN again. Two RETURNs are needed because the cassette handler waits for you to ready the tape before it turns on the motor (Antic, "PACTL Poker"). Type RUN when READY appears, unless you used RUN "C:".

Commercial BASIC tapes usually say which command to use on the inlay. If CLOAD gives an error, try RUN "C:": they are different formats, as the next section explains.

3. Saving reliably

Command Gap between records Speed Contents
CSAVE Short (motor keeps running) Fastest Tokenised program
SAVE "C:" Long (motor stops between records) Medium Tokenised program
LIST "C:" Long Slowest Plain ATASCII text, mergeable with ENTER

For any save, the computer buzzes twice. Press PLAY and RECORD together, then RETURN.

Hard-won tips:

  • Don't CSAVE right after pressing SYSTEM RESET on a 400/800. Atari's Tech Tip 5 (1982) explained that RESET leaves POKEY's data line in a bad state, so the next CSAVE writes garbage. Run any serial command first: LPRINT is the classic. It gives error 138 if no printer is attached, but that is harmless and clears the problem. An Antic reader traced noisy leaders to the same cause.
  • Use a fresh stretch of tape, past the clear leader at the start, and keep the write-protect tabs on finished tapes.
  • Save twice. Then verify by loading the copy before you trust it.
  • Use normal-bias (Type I) tape. Chrome and metal tapes aren't suitable.

Handy POKEs

POKE 65,0      : REM SOUNDR - silence the I/O beeps during tape and disk I/O
POKE 54018,52  : REM PACTL - cassette motor ON (with PLAY pressed)
POKE 54018,60  : REM PACTL - cassette motor OFF
POKE 764,12    : REM CH - pre-load a RETURN so CLOAD/CSAVE in a program skips the second keypress

The motor POKE lets you listen to a tape through the TV to find where a program starts. Carl Evans found a "missing" adventure file at counter 68 this way. It also plays music tapes through the TV.

4. Keeping the recorder healthy

  • Clean the head and capstan regularly. Most loading errors are dirt or misalignment, not dead hardware.
  • Head alignment. Carl Evans's Antic method (August 1983) needs a test-tone tape, a small non-magnetised Phillips screwdriver and an AC voltmeter. Measure the audio signal at the 800's monitor jack (pins 3 and 2), or on the SIO lines (pin 11 against ground pin 4). Use POKE 54018,52 to run the motor and POKE 65,0 to mute the data channel. The adjustment screw sits under the label plate above the keys. Turn it a fraction at a time while the tone plays, and stop at the maximum reading. Once set, it stays put: once or twice a year is plenty.
  • The 1010 is a modest improvement on the 410. Its detachable connectors and two SIO ports make servicing easier, but the playback circuit is essentially the same.
  • Typical failures are errors 138, 140 and 143. 143 means a record's checksum didn't match.

5. Tapes in emulators

Altirra: use File > Boot Image on a .cas or .wav. For machine-language tapes, enable System > Cassette > Auto-boot on startup and the emulator holds START and presses a key for you. Its BASIC auto-detection can also issue the CLOAD for you. Enable the C: SIO patch to load in seconds rather than minutes. That doesn't work for turbo or custom loaders, so turn it off if a tape fails. The Tape Control dialog shows both tracks as waveforms and gives you play, record and seek controls. Like a real 410, the emulator will happily record over your program if you "load" in record mode.

Atari800: -tape file.cas attaches a tape, -boottape file.cas boots it. To save, set the tape's Record option first (writes are appended to the end of the image), and use Make blank tape for a new one. Protected tapes may need -nopatch.

6. Digitising your own tapes

Tips for making a good tape image:

  • Record in stereo (left = audio, right = data), with peaks a little below maximum and no clipping.
  • Switch off Dolby, bass boost and other enhancements. Standard 600-baud FSK tolerates them, but turbo formats don't.
  • Keep the leader. Trimming it can make the OS's ten-second skip swallow the first block.
  • Save as WAV or FLAC, not MP3 or Ogg. Lossy codecs damage the data track, especially turbo data. If you must, use a high bitrate (LAME at 128 kbps or better) with joint stereo off.
  • Don't record the Atari's TV audio output as a tape image, and never record through a microphone. Both give an undecodable mess.

A .cas file holds only the decoded data track: convenient and tiny, but the audio is lost. Altirra 4.30 and later can pair a CAS with a compressed Ogg audio track.

7. Real hardware without a recorder

Modern SIO devices can play CAS images to a real Atari: FujiNet's emulated C: device, A8PicoSIO, AVGCART (with its SIO cable), and the PC programs APE and RespeQt (cassette playback). Boot them exactly as above, holding START at power-on.

8. Turbo systems

Because tape was so important in Eastern Europe, dozens of turbo upgrades appeared, mostly from 1985–1991. They loaded at several thousand bits per second instead of 600. Examples include Turbo 2000 (Czechoslovakia, 1987), AST and Blizzard Turbo (Poland), Rambit TurboCharger (UK) and Turbo 6000 (East Germany). They need both hardware and loader software. CAS-format turbo chunks and Altirra's raw-audio decoder can preserve them.

Troubleshooting

  • Nothing happens after the buzz: PLAY isn't pressed, or the tape is in the leader. Wait: the OS ignores the first ten seconds.
  • Boot tape loads, then crashes on an XL/XE: hold OPTION with START, to disable BASIC.
  • CLOAD fails but the tape is fine: it was probably saved with SAVE "C:". Use RUN "C:" or LOAD "C:".
  • Random errors on every tape: clean the head, then align it.
  • Copy-protected tape fails in an emulator: disable the C: SIO patch, and use a raw WAV/FLAC image rather than a CAS.

Further reading

  • De Re Atari and the OS User's Manual document the cassette handler. The FAQ's section 7.1.6 summarises the record format.
  • Carl Evans's Tape Topics column in Antic, 1982–1984, archived at atarimagazines.com.
  • Our guides to disk image formats (including CAS chunks) and the Altirra emulator.

Credits