ANTIC (Alphanumeric Television Interface Controller)

Year
1979
Type
Component
Category
Custom chip — display processor
Manufacturer
Atari, Inc.
ANTIC chip marked C021698-01 on a circuit board

Overview

ANTIC is the chip that makes Atari 8-bit graphics different from almost every other home computer of its day. Instead of a fixed video circuit reading a fixed block of screen RAM, the Atari has a dedicated video microprocessor with its own instruction set and its own program — the display list — held anywhere in RAM. Each display-list instruction describes one "mode line": which of 14 text or graphics modes to use, whether to load a new screen-memory address, whether to scroll, and whether to interrupt the 6502. Because the list is just bytes in memory, a screen can stack different modes, take its data from scattered memory, scroll smoothly in both directions and change colours part-way down — the techniques behind most of the platform's celebrated games.

Atari's field service manual expands the name as "AlphaNumeric Television Interface Controller". ANTIC was designed by Joe Decuir with François Michel as co-designer; it sits at $D400–$D40F in the memory map and is also used in the Atari 5200.

What ANTIC does

  • Playfield DMA. It fetches display-list instructions and screen data (and character-set data in text modes) from RAM by halting the 6502 and "stealing" bus cycles. As a result the CPU runs at roughly 60–90% of full speed depending on the display mode.
  • Player/missile DMA. It automatically fetches sprite data for the GTIA.
  • DRAM refresh. It generates the refresh addresses for the computer's dynamic RAM.
  • Non-maskable interrupts. Display-list interrupts (DLIs), the vertical-blank interrupt and (on the 400/800) the RESET key.
  • Fine scrolling horizontally and vertically on any mode line.
  • Timing helpers. VCOUNT (the current scan line divided by two) and WSYNC, which stalls the CPU until the next horizontal sync so that colour changes land on exact lines.
  • Light-pen position registers, latched when a pen or gun pulls a joystick trigger line low.

Specifications

Item Detail
Part numbers NTSC C012296 (400/800/1200XL, early 800XL); PAL "A" C014887; NTSC "E" C021697 and PAL "B" C021698 (600XL, later 800XL, all XE)
Modes 14 (ANTIC modes 2–F): 6 character modes, 8 bitmap ("map") modes
Display list 1- or 3-byte instructions: blank lines (1–8), mode lines, JMP, JVB (jump and wait for vertical blank); option bits for DLI, LMS, VSCROL, HSCROL
Limits Display list may not cross a 1 KiB boundary (use JMP); screen data may not cross a 4 KiB boundary within a line (use a second LMS)
Resolution Up to 320 pixels across a standard playfield (352 with wide playfield); 192 lines normally, up to 240 with a custom list
Refresh counter 8-bit on early versions; 9-bit on the "E"/"B" versions, supporting 256K DRAMs

A display list in practice

De Re Atari gives the standard BASIC GRAPHICS 0 list: three $70 bytes (8 blank lines each, to clear the TV overscan), $42 plus a two-byte screen address (ANTIC mode 2 with Load Memory Scan), twenty-three more $02 bytes, then $41 plus the list's own address (JVB). That is 24 text lines of 8 scan lines — the 192-line screen. In BASIC you can find the current list with:

10 DL=PEEK(560)+256*PEEK(561)
20 FOR I=0 TO 31:PRINT PEEK(DL+I);" ";:NEXT I

Locations 560/561 ($230/$231) are the OS shadow of ANTIC's display-list pointer; De Re Atari advises turning DMA off (POKE 559,0, the SDMCTL shadow) before changing them and back on afterwards (POKE 559,34).

History and versions

ANTIC was developed for the 400/800 in 1977–78 and shipped from 1979. The later "E" (NTSC) and "B" (PAL) revisions extend the refresh counter for larger DRAM chips; Atari tech tips record that some early 600XLs and the first 24,000 PAL 600XLs shipped with the older versions by mistake. On the 400/800 the RESET key generates an NMI through ANTIC, whereas on XL/XE machines it resets the chip directly.

Programming tips

  • Keep each scan line of a large bitmap from straddling a 4 KiB boundary; the OS itself offsets its 7.5 KiB GRAPHICS 8 buffer to avoid this.
  • Fewer displayed lines (or narrow playfield) means fewer stolen cycles and a faster program; switching DMA off entirely is a classic speed trick (the 1200XL even had a key combination for it).
  • Change the display-list pointer only during vertical blank or with DMA disabled — a half-written pointer can make ANTIC execute random memory and fire spurious DLIs.

Credits