The Sega Mark III Game Console 3

The CPU 4
  Reset 4
  Interrupt System 4
  NMI 4
  INT 5

The Video Display Processor (VDP) 6
  Video RAM Organization 6
  Color 6
  Background System 7
  Scroll Inhibit Bits 7
  Sprites 8
  Sprite Attribute Table 8
  Sprite Attribute Table Organization 9
  Sprite/Background Display Priority 10
  Color RAM 10
  Character Patterns 10
  An Example Character Pattern 11
  VDP Registers 12
    Read VDP RAM 12
    Write VDP RAM 12
    Write VDP Register 13
    Write VDP Color RAM 13
    Color RAM Addresses 14
  VDP Register Updates 14
  VDP Register Description 15
    Register 0 - VDP Control 15
    Register 1 - VDP Control 15
    Register 2 - Screen Map Base Address 16
    Register 3 16
    Register 4 16
    Register 5 - Sprite Attribute Table (SAT) Base Address 16
    Register 6 - Sprite Pattern Base Address 17
    Register 7 - Border Color 17
    Register 8 - Horizontal Scroll 17
    Register 9 - Vertical Scroll 17
    Register 10 - Raster Line Interrupt 18

The Memory Management System 19
  System RAM 19
  Memory Enables 19
  Memory Selection at Power-On 20
  Memory Maps 21
    32 Kilobytes 21
    128 Kilobytes 21
  The Cartridge Header 22

The Input/Output System 23
  Input Ports Bit Assignments 24
  How the Gun Works 25
  How the Trackball Works 26

The Programmable Sound Generator (PSG) 27
  Tone Generator Frequency 27
  Noise Generator Control 28
  Attenuators 29

Appendix A - VDP Registers 30
Appendix B - Input/Output Ports 31
Appendix C - Sample Code to Read Gun 32
Appendix D - Sample Code to Read TrackBall 37

Developer Notes 39
  Z80 Memory Map 39
  Memory Control Registers 39
  4M Bit ROM 40
  Z80 Address $0000 - $03FF 40

Supporting Illustrations 41
