XL/XE Self Test
- Year
- 1982
- Type
- Component
- Category
- Built-in diagnostic program in the XL/XE operating system ROM
- Manufacturer
- Atari, Inc.
- Related
- Rainbow (GTIA Demo), Rainbow (scan-line colour fan), Buying a Used Atari 8-bit Today: Models, Checks and First Steps, Atari in France: Péritel 400/800, the PVP80 and the SECAM Machines, Tramiel's Atari Corp. and the XE Era, 1984–1992, XL/XE Compatibility: Why Old 800 Software Fails, and How the Translator Fixes It
Overview
Every Atari from the 1200XL onwards carries a small diagnostic program in its operating system ROM: the Self Test. It checks the computer's ROM and RAM, plays tones on all four sound voices with a colour display, and lets you test every key — no cartridge or disk needed. The 400 and 800 have nothing equivalent, and the Self Test is still the quickest health check for a second-hand XL or XE.
The XL operating system also runs a quick automatic ROM and RAM check every time it starts. If that fails, the Self Test's memory test launches by itself, which is why a faulty machine may greet you with the words MEMORY TEST and red blocks instead of BASIC.
Starting it
| Machine | How |
|---|---|
| 600XL, 800XL, 65XE, 130XE, 800XE | Hold OPTION while switching on (with no cartridge and no disk drive 1 powered), or type BYE at the BASIC READY prompt |
| 1200XL | Press HELP on the rainbow "ATARI" logo screen; or remove the internal option jumper so Self Test runs at every start-up |
| XE Game System | Hold OPTION at power-on (with or without the keyboard attached) when no disk drive 1 is present |
The menu offers Memory, Audio-Visual, Keyboard and All Tests. SELECT moves between them, START runs the chosen test, HELP returns to the menu, and RESET leaves Self Test (to BASIC on machines that have it).
The tests
- Memory test. Two bars represent the ROM (the operating system, and BASIC where fitted); green means good, red means "STOP" — the ROM is faulty. Below, a grid of 48 squares stands for the main 48 KiB of RAM, one square per section; the 800XL owner's guide explains that the machine's remaining 16K is usable only by certain software. Each square turns white while it is tested and then green if good or red if faulty.
- Audio-Visual test. A musical staff and treble clef appear above the number of the voice being tested; six notes are played and drawn for each of the four POKEY voices in turn. A voice number with no sound means that voice — or the TV's volume — is at fault, and the colours should stay consistent throughout.
- Keyboard test. A picture of the keyboard appears; pressing a key flashes its image in reverse video with a click. SHIFT and CONTROL only flash together with another key, three keys (HELP, RESET and BREAK) end the test or do nothing, and a key whose image never changes is faulty.
- All Tests runs the three in sequence, repeating until you press HELP or RESET. On the 1200XL the keyboard part of All Tests has a famous Easter egg: it types out the programmer's name.
Behind the scenes
The Self Test was written by Mike W. Colburn for XL OS Rev. A (the 1200XL OS, completed in October 1982); Rev. 3 (March 1985) updated it for the 65XE and 130XE. Physically it occupies 2 KiB of the 16 KiB OS ROM that would otherwise sit underneath the hardware registers at $D000–$D7FF. To run it, the OS clears bit 7 of PORTB ($D301), which maps that ROM into RAM space at $5000–$57FF; setting the bit (the normal state) gives the RAM back to programs.
That design has side-effects:
- On a 130XE the Self Test window overlaps the
$4000–$7FFFextended-memory window; when both are enabled, reads in$5000–$57FFcome from the Self Test ROM and writes there are discarded. - Several third-party memory upgrades for the 800XL reuse PORTB bit 7 as an extra bank-select bit, so on those machines Self Test is "lost via software control" or only available in some modes.
- A quick trick from Antic's Tech Tips (May 1987): on an XL/XE, press RESET, type BYE to reach the Self Test menu, then press RESET again — the machine reboots without being switched off, re-running AUTORUN.SYS.
Using it today
Run All Tests after any repair or RAM upgrade; it repeats until stopped, so it can be left running to catch intermittent faults. A red ROM bar points to a faulty ROM, red RAM squares to failing memory, a silent voice number to a sound fault, and a key that never flashes to a keyboard fault.
Credits
- Picture: The Self Test explained in The Atari 800XL Home Computer Owner's Guide (1983). — Page 8 of The Atari 800XL Home Computer Owner's Guide (Atari, 1983), scan in the local Atari documents collection (Fair use (manual page))
- Atari 600XL owner's guide (archive.org OCR, Italian-market English edition) — self test section — Internet Archive
- comp.sys.atari.8bit FAQ (Michael Current) — 1.4 (1200XL HELP key, option jumper, Easter egg, start-up check), 1.5-1.10 (OPTION at power-up), 1.9 (XEGS boot table), 1.14 (PORTB bit 7), 6.12 (upgrades reusing PORTB bit 7), 7.1.1 (OS credits: Mike W. Colburn; Rev.3) — Michael Current (comp.sys.atari.8bit FAQ)
- Altirra Hardware Reference Manual — 2.6 bank switching (self-test ROM and extended memory conflict) — Avery Lee (Altirra)
- Antic vol. 6 no. 1 (May 1987), Tech Tips — 'Bye Bye Reboot' — AtariMagazines.com (Kevin Savetz), 1987
