Skip to content
Hardware

Agnus: The Amiga's Memory Master

DMA controller, Blitter, and Copper in one package

Agnus coordinated all memory access on the Amiga, housing the Blitter for fast graphics and the Copper for beam-synchronised effects.

commodore-amiga custom-chipsdmamemory-controllercommodore 1985–1992

Overview

Agnus was the Amiga's traffic controller. Every memory access—from the 68000, the Blitter, the display hardware, audio playback—flowed through Agnus. It allocated time slots fairly, ensuring smooth graphics and audio while letting the CPU work during the gaps.

Fast facts

  • Function: DMA controller, Blitter engine, Copper coprocessor.
  • Versions: 8361 (NTSC), 8367 (PAL), 8370/8372 (Fat Agnus), 8375 (Super Agnus).
  • Chip RAM: 512KB (original), 1MB (Fat), 2MB (Super/ECS).
  • DMA channels: 25 independent channels for different purposes.

DMA slot allocation

Agnus divides each scanline into time slots. The standard PAL/NTSC layout interleaves memory refresh with disk on the early slots:

SlotsPurpose
0, 2, 4Memory refresh (DRAM)
1, 3, 5Disk DMA
7, 9, 11, 13Audio channels 0-3
15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45Sprites 0-7 (two slots each)
0x38-0xD0 (display window)Bitplane DMA
RemainingCopper, Blitter, CPU

Outside bitplane DMA the CPU and Blitter alternate cycles by default — odd cycles for the CPU, even for the Blitter — so the Blitter operates concurrently with the CPU rather than starving it. Setting the BLITHOG bit (BLTCON1 bit 1) gives the Blitter every available cycle, halting the CPU until the blit completes; this is faster but blocks CPU work, so games tend to leave BLITHOG clear unless the blit is short.

Full DMA priority chain

When multiple DMA channels need the same cycle, Agnus arbitrates in this fixed order (highest to lowest):

  1. Memory refresh
  2. Disk
  3. Audio
  4. Sprites (during sprite DMA window)
  5. Bitplanes (during display window)
  6. Copper
  7. Blitter
  8. CPU (gets whatever slots remain)

Chip versions

ChipChip RAMNotes
8361/8367512KBOriginal A1000, early A500
8370/83721MB"Fat Agnus" - larger package
83752MBECS "Super Agnus"
Alice2MBAGA replacement in A1200/A4000

The Blitter

The Blitter is a DMA engine within Agnus that performs:

  • Block copies: rectangular memory moves.
  • Logic operations: combine up to three sources with minterm logic.
  • Area fill: flood-fill between edges.
  • Line drawing: hardware-accelerated lines.

Blitter sources

SourcePurpose
ASource/mask data
BSource data
CDestination read (for merge)
DDestination write

Minterm operations

The Blitter combines sources using an 8-bit minterm value:

Result = (A AND B AND C) * bit7 +
         (A AND B AND NOT C) * bit6 +
         ... and so on for all 8 combinations

Common minterms:

  • $F0: Copy A to D (ignore B, C)
  • $CA: Cookie-cut (A masks B onto C)
  • $5A: XOR A with C

The Copper

The Copper is a coprocessor with just three instructions:

InstructionFirst-word bit 0Second-word bit 0Purpose
MOVE0(don't care)Write to register
WAIT10Wait for beam position
SKIP11Skip next instruction if beam past position

WAIT and SKIP share the same first-word encoding; the second word's low bit distinguishes them.

Copper list example

dc.w    $0180, $0000    ; COLOR00 = black
dc.w    $2c07, $fffe    ; WAIT for line $2c
dc.w    $0180, $0f00    ; COLOR00 = red
dc.w    $5007, $fffe    ; WAIT for line $50
dc.w    $0180, $00f0    ; COLOR00 = green
dc.w    $ffff, $fffe    ; End (wait forever)

Copper capabilities

  • Palette changes: different colours per scanline (copper rainbows).
  • Mode switches: change resolution mid-screen.
  • Sprite repositioning: move sprites to different locations per frame.
  • Register pokes: modify nearly any hardware register.

Key registers

RegisterAddressPurpose
DMACON$DFF096DMA control
DMACONR$DFF002DMA control read
BLTCON0$DFF040Blitter control
COP1LC$DFF080Copper list 1 pointer
COP2LC$DFF084Copper list 2 pointer
COPJMP1$DFF088Restart Copper list 1

See also