6566 VIC

    1 -6566 VIC- 40    
    2 39    
    3 38    
    4 37    
    5 36    
    6 35    
    7 34    
    8 33    
    9 32    
    10 31    
    11 30    
    12 29    
    13 28    
    14 27    
    15 26    
    16 25    
    17 24    
    18 23    
    19 22    
    20 21    

Registers

Base = D000 on the C64. Offsets are in hex.

Offset Bit Function
00, 01   X,Y Position of Sprite 0
02, 03   X,Y Position of Sprite 1
04, 05   X,Y Position of Sprite 2
06, 07   X,Y Position of Sprite 3
08, 09   X,Y Position of Sprite 4
0a, 01   X,Y Position of Sprite 5
0c, 0d   X,Y Position of Sprite 6
0e, 0f   X,Y Position of Sprite 7
10   Sprites 0-7 X Pos (msb of X coord.)
11   VIC Control Register
7 Raster Compare: (Bit 8) See 53266
6 Extended Color Text Mode 1 = Enable
5 Bit Map Mode. 1 = Enable
4 Blank Screen to Border Color: 0 = Blank
3 Select 24/25 Row Text Display: 1 = 25 Rows
2-0 Smooth Scroll to Y Dot-Position (0-7)
12   Read Raster / Write Raster Value for Compare IRQ
13   Light-Pen Latch X Pos
14   Light-Pen Latch Y Pos
15   Sprite display Enable: 1 = Enable
16   VIC Control Register
  7-6 Unused
  5 ALWAYS SET THIS BIT TO 0 !
  4 Multi-Color Mode: 1 = Enable (Text or Bit-Map)
  3 Select 38/40 Column Text Display: 1 = 40 Cols
  2-0 Smooth Scroll to X Pos
17   Sprites 0-7 Expand 2x Vertical (Y)
18   VIC Memory Control Register
  7-4 Video Matrix Base Address (inside VIC)
  3-1 Character Dot-Data Base Address (inside VIC)
  0 Select upper/lower Character Set
19   VIC Interrupt Flag Register (Bit = 1: IRQ Occurred)
  7 Set on Any Enabled VIC IRQ Condition
  3 Light-Pen Triggered IRQ Flag
  2 Sprite to Sprite Collision IRQ Flag
  1 Sprite to Background Collision IRQ Flag
  0 Raster Compare IRQ Flag
1a   IRQ Mask Register: 1 = Interrupt Enabled
1b   Sprite to Background Display Priority: 1 = Sprite
1c   Sprites 0-7 Multi-Color Mode Select: 1 = M.C.M.
1d   Sprites 0-7 Expand 2x Horizontal (X)
1e   Sprite to Sprite Collision Detect
1f   Sprite to Background Collision Detect
20   Border Color
21-24   Background Color 0-3
25,26   Sprite Multi-Color Register 0,1
27-2e   Colour of Sprites 0-7