6. Sega Mega Drive / Genesis

16-bit does what Nintendon't

The Sega Mega Drive (known as the Genesis in North America) launched in Japan in 1988 and reached the US in 1989. It was the first true 16-bit console to gain mass-market traction, and for several years it outsold the SNES in North America. Sonic the Hedgehog, Streets of Rage, Phantasy Star, Gunstar Heroes, and Shining Force — the Mega Drive had a library that earned its place in history.

The hardware is remarkable for two reasons. First, it uses the same Motorola 68000 CPU from the Amiga — a genuine 16/32-bit processor driving a console. Second, it has a Z80 coprocessor running alongside the 68000, primarily for sound but also providing backward compatibility with the Master System. Two CPUs, a powerful VDP, and a Yamaha FM synthesizer — all in a console from 1988.

If you've read the Amiga article, the 68000 will be familiar. If you've read the SMS article, the VDP's tile-based model and the Z80 will be familiar. The Mega Drive brings both worlds together.

The System at a Glance

Mega Drive Specifications

Main CPUMotorola 68000 @ 7.67 MHz (NTSC) / 7.61 MHz (PAL)
Sub CPUZilog Z80 @ 3.58 MHz
68000 RAM64 KB main RAM
Z80 RAM8 KB sound RAM
GraphicsVDP (315-5313) — 320x224 or 256x224, 64 colors on screen from 512
VRAM64 KB
Sprites80 total, 20 per scanline, 4 sizes, link-list based
Scrolling2 scrollable planes (A and B) + fixed window plane
SoundYamaha YM2612 FM (6 channels) + SN76489 PSG (4 channels)
Video outputNTSC or PAL composite + RGB

The Dual-CPU Architecture

The Mega Drive's most distinctive architectural feature is its two processors. The 68000 runs the game — logic, input, graphics setup. The Z80 handles sound, running independently with its own 8 KB of RAM and access to both sound chips.

68000 — The Main CPU

You already know the 68000 from the Amiga article: 8 data registers (D0-D7), 7 address registers (A0-A6) plus SP, all 32-bit. Hardware multiply and divide, rich addressing modes, three data sizes (.B, .W, .L). On the Mega Drive it runs at 7.67 MHz — slightly faster than the Amiga's 7.09 MHz.

The key difference from the Amiga: on the Mega Drive there are no competing custom chips stealing bus cycles. The 68000 has full-speed access to its 64 KB of RAM. The VDP has its own dedicated 64 KB of VRAM. This clean separation means the 68000 runs at consistent speed without the bus contention issues that plague the Amiga.

Z80 — The Sound CPU

The Z80 runs at 3.58 MHz with 8 KB of dedicated RAM. It talks to the YM2612 FM chip and the SN76489 PSG through I/O ports, and can also access the 68000's address space through a memory window (a 32 KB "bank" of 68000 memory visible at $8000-$FFFF in Z80 space).

The two CPUs share access to the 68000's bus through a bus arbiter. Only one can access it at a time:

; 68000 side: request the Z80 bus
    MOVE.W  #$0100, $A11100    ; request Z80 bus
.wait_bus:
    BTST    #0, $A11100        ; wait until we have it
    BNE     .wait_bus

    ; ... access Z80 RAM or control registers ...

    ; Release the Z80 bus
    MOVE.W  #$0000, $A11100

; 68000 side: reset the Z80
    MOVE.W  #$0000, $A11200    ; assert Z80 reset
    ; ... short delay ...
    MOVE.W  #$0100, $A11200    ; release Z80 reset

The Z80 as Sound Driver

In most Mega Drive games, the 68000 uploads a sound driver program into Z80 RAM, resets the Z80, and lets it run independently. The 68000 communicates with the sound driver by writing commands to a shared memory location. The Z80 reads commands and programs the YM2612 and PSG accordingly. This means sound playback is essentially free for the 68000 — no CPU time spent on audio at all.

Memory Map

68000 Memory Map

$FFFFFF ┌───────────────────────┐
        │   68000 RAM (64 KB)   │
$FF0000 ├───────────────────────┤ mirrored through $FFFFFF
        │   Reserved            │
$C00020 ├───────────────────────┤
        │   VDP ports           │ $C00000: data, $C00004: control
$C00000 ├───────────────────────┤ $C00008: HV counter
        │   Reserved            │
$A10020 ├───────────────────────┤
        │   I/O area            │ Controller ports, Z80 bus control
$A10000 ├───────────────────────┤
        │   Z80 address space   │ $A00000-$A0FFFF: Z80 RAM + ports
$A00000 ├───────────────────────┤
        │   Reserved            │
$400000 ├───────────────────────┤
        │                       │
        │   Cartridge ROM       │ Up to 4 MB
        │                       │
$000000 └───────────────────────┘

The 68000 has up to 4 MB of cartridge ROM space ($000000-$3FFFFF), 64 KB of work RAM (at $FF0000, mirrored), VDP access through a register port, and direct access to Z80 memory for uploading sound drivers.

Z80 Memory Map

Z80 Memory Map

$FFFF ┌─────────────────────┐
      │  68000 bank window  │ 32 KB window into 68000 address space
$8000 ├─────────────────────┤ (bank selected via $6000)
      │  Reserved / unused  │
$4000 ├─────────────────────┤
      │  YM2612 registers   │ $4000-$4003
$2000 ├─────────────────────┤
      │  Z80 RAM (8 KB)     │ Sound driver code + data
$0000 └─────────────────────┘

The VDP — Video Display Processor

The Mega Drive VDP (315-5313) is a significant evolution of the Master System's VDP. It's a tile-based renderer with two independently scrollable background planes, a window plane, 80 sprites, and a powerful DMA engine. All graphics data lives in the VDP's dedicated 64 KB of VRAM.

VDP Communication

The CPU accesses the VDP through two 16-bit ports:

  • $C00000 — data port (read/write VRAM, CRAM, VSRAM)
  • $C00004 — control port (set address, write registers, read status)

To set the VRAM address or write a register, you write a 32-bit command word to the control port:

; Write to VDP register
; Format: %1000 rrrr dddd dddd (register r, data d)
    MOVE.W  #$8134, $C00004    ; register $01 = $34 (enable DMA, VBlank IRQ)
    MOVE.W  #$8230, $C00004    ; register $02 = $30 (Plane A at VRAM $C000)
    MOVE.W  #$8407, $C00004    ; register $04 = $07 (Plane B at VRAM $E000)

; Set VRAM write address to $C000
; Command format: CD1 CD0 A13-A0 (in a specific bit arrangement)
    MOVE.L  #$40000003, $C00004  ; VRAM write to $C000
    MOVE.W  #$1234, $C00000      ; write data to VRAM

The command word encoding is notoriously fiddly — address bits are split across two words and interleaved with command bits. Most programmers use macros or helper routines.

VDP Registers

Key VDP Registers

$00Mode register 1: HBlank IRQ enable, HV counter latch
$01Mode register 2: display enable, VBlank IRQ, DMA enable, V30 mode (PAL)
$02Plane A name table address
$03Window name table address
$04Plane B name table address
$05Sprite attribute table address
$07Background color (palette line + entry)
$0AHBlank interrupt counter
$0BMode register 3: external interrupt, scroll mode (full/per-tile/per-line)
$0CMode register 4: H40 (320px) / H32 (256px), interlace, shadow/highlight
$0DHScroll data table address
$0FAuto-increment value (added to VRAM address after each access)
$10Plane size: 32x32, 64x32, 32x64, 64x64, or 128x32

Tile Format

Tiles are 8x8 pixels with 4 bits per pixel, giving 16 colors per tile. Each tile is 32 bytes — the same format as the Master System.

Tile Data Format (32 bytes per tile)

Each row = 4 bytes (8 pixels x 4 bits = 32 bits)
Pixels are packed MSB-first, 4 bits each:

Byte 0: [px0 hi] [px0 lo] [px1 hi] [px1 lo] — pixels 0-1 Byte 1: [px2 hi] [px2 lo] [px3 hi] [px3 lo] — pixels 2-3 Byte 2: [px4 hi] [px4 lo] [px5 hi] [px5 lo] — pixels 4-5 Byte 3: [px6 hi] [px6 lo] [px7 hi] [px7 lo] — pixels 6-7

8 rows x 4 bytes = 32 bytes per tile Pixel value 0 = transparent (for sprites) or palette entry 0 (for BG)

The Color Palette

The VDP has 4 palette lines of 16 colors each (64 colors on screen), selected from a master palette of 512 colors (9-bit: 3 bits each for R, G, B). Palette data lives in CRAM (Color RAM), a separate 128-byte memory inside the VDP.

; Write palette: set color 0 of palette line 0 to dark blue
; CRAM write command to address $0000
    MOVE.L  #$C0000000, $C00004  ; CRAM write address $0000
    MOVE.W  #$0E00, $C00000      ; color value: %0000 BBB0 GGG0 RRR0
                                 ; B=7, G=0, R=0 = dark blue

; Set color 1 to white ($0EEE)
    MOVE.W  #$0EEE, $C00000      ; auto-increments to next CRAM entry

Each color entry is a word: %0000 BBB0 GGG0 RRR0. The LSB of each component is unused, giving 8 levels per channel (0, 2, 4, 6, 8, A, C, E).

Shadow and Highlight

The VDP has a unique shadow/highlight mode that effectively triples the available shades. When enabled, each pixel can be rendered in one of three brightness levels:

  • Shadow — half brightness (darker)
  • Normal — standard brightness
  • Highlight — increased brightness (lighter)

Sprite palette line 3 with specific color indices controls which mode applies to the background behind the sprite. This is used for spotlight effects, dimming parts of the screen, and simulating lighting.

Planes and Scrolling

The Mega Drive has three planes, composited by the VDP with configurable priority:

Plane A and Plane B

Two independently scrollable tile map layers. Each is a grid of tile entries (configurable from 32x32 to 128x32 tiles). Each name table entry is a 16-bit word:

Name Table Entry (16 bits)

Bit 15Priority (1 = in front of other plane)
Bits 14-13Palette line (0-3)
Bit 12Vertical flip
Bit 11Horizontal flip
Bits 10-0Tile index (0-2047)

The two-plane setup enables parallax scrolling without any software effort — Plane A scrolls at one speed, Plane B at another, creating a depth illusion.

Scroll Modes

The VDP supports three horizontal scroll modes, configured in register $0B:

Mode Granularity Description
Full Entire screen One scroll value for the whole plane
Per-tile row Every 8 lines Independent scroll per tile row (8 pixels)
Per-line Every scanline Independent scroll per scanline — full raster effects

Vertical scroll can be full-screen or per-2-tile-column (every 16 pixels), stored in VSRAM (Vertical Scroll RAM), a 80-byte memory inside the VDP.

Horizontal scroll data lives in VRAM at an address set by register $0D.

; Set up per-line horizontal scrolling
    MOVE.W  #$8B03, $C00004    ; register $0B: per-line H-scroll, full V-scroll

; Write H-scroll data to VRAM (4 bytes per line: Plane A word, Plane B word)
; Set VRAM write address to H-scroll table
    MOVE.L  #$7C000002, $C00004  ; VRAM write at $FC00 (example)

    ; Line 0: Plane A scroll=0, Plane B scroll=0
    MOVE.W  #0, $C00000       ; Plane A H-scroll
    MOVE.W  #0, $C00000       ; Plane B H-scroll
    ; Line 1: Plane A scroll=2, Plane B scroll=1
    MOVE.W  #2, $C00000
    MOVE.W  #1, $C00000
    ; ... repeat for all 224 lines ...

Per-line scrolling is how Mega Drive games create water ripple effects, heat shimmer, parallax gradients, and the warping effects in Sonic's special stages.

Window Plane

The Window is a third plane that replaces a rectangular portion of Plane A. It cannot scroll — it's fixed in place, making it ideal for score displays, HUDs, and status bars. Registers $11 and $12 define the window position and whether it covers the left/right or top/bottom portion of the screen.

Sprites

The Mega Drive supports 80 sprites (64 in H32 mode), organized as a linked list in the Sprite Attribute Table (SAT) in VRAM.

Sprite Attributes

Each sprite entry is 8 bytes:

Sprite Attribute Entry (8 bytes)

Word 0Y position (10 bits, offset by 128)
Word 1Size (bits 10-8: height 0-3, bits 9-8: width 0-3) + link (bits 6-0: next sprite index)
Word 2Priority, palette line, V-flip, H-flip, tile index (11 bits)
Word 3X position (10 bits, offset by 128)

Sprite Sizes

Sprites can be 1-4 tiles wide and 1-4 tiles tall (in 8-pixel increments):

Sprite Size Options

Width x Height (in tiles / pixels):
  1x1 (8x8)     2x1 (16x8)    3x1 (24x8)    4x1 (32x8)
  1x2 (8x16)    2x2 (16x16)   3x2 (24x16)   4x2 (32x16)
  1x3 (8x24)    2x3 (16x24)   3x3 (24x24)   4x3 (32x24)
  1x4 (8x32)    2x4 (16x32)   3x4 (24x32)   4x4 (32x32)

The Sprite Link List

Unlike the NES and SMS where sprites are processed in order, the Mega Drive uses a linked list. Each sprite entry contains the index of the next sprite to process. The VDP starts at sprite 0 and follows the chain. This means sprite evaluation order is independent of table position — useful for priority management.

A link value of 0 terminates the list.

; Set up 3 sprites in VRAM SAT at $F800
    MOVE.L  #$78000002, $C00004  ; VRAM write at $F800

    ; Sprite 0: Y=200, size 2x2, link to sprite 1, tile 10, X=160
    MOVE.W  #200+128, $C00000   ; Y position (add 128 offset)
    MOVE.W  #$0501, $C00000     ; size=%01 %01 (2x2), link=1
    MOVE.W  #10, $C00000        ; tile index 10, no flip, palette 0
    MOVE.W  #160+128, $C00000   ; X position (add 128 offset)

    ; Sprite 1: Y=100, size 1x1, link to sprite 2
    MOVE.W  #100+128, $C00000
    MOVE.W  #$0002, $C00000     ; size 1x1, link=2
    MOVE.W  #20, $C00000
    MOVE.W  #80+128, $C00000

    ; Sprite 2: Y=150, size 1x1, link=0 (end of list)
    MOVE.W  #150+128, $C00000
    MOVE.W  #$0000, $C00000     ; link=0, terminates
    MOVE.W  #30, $C00000
    MOVE.W  #200+128, $C00000

Sprite Limits

  • 20 sprites per scanline in H40 mode (16 in H32) — excess sprites are masked
  • 320 sprite pixels per scanline (256 in H32) — even if you have few sprites, total pixel width is capped
  • Hardware H-flip and V-flip per sprite
  • Per-sprite priority (in front of or behind planes)

VDP DMA

The VDP has a built-in DMA engine that can transfer data at high speed:

  • 68000 RAM → VRAM (Fill VRAM from ROM/RAM during VBlank)
  • VRAM → VRAM (Copy within VRAM)
  • DMA Fill (Fill a VRAM region with a single value)

DMA is configured through VDP registers $13-$17 and triggered via the control port:

; DMA: copy 256 words from 68000 address $200000 to VRAM $C000

    ; Set DMA length (registers $13-$14)
    MOVE.W  #$9300+(256&$FF), $C00004    ; DMA length low byte
    MOVE.W  #$9400+((256>>8)&$FF), $C00004  ; DMA length high byte

    ; Set source address / 2 (registers $15-$17)
    ; Source = $200000, so $200000/2 = $100000
    MOVE.W  #$9500+($00), $C00004       ; source low byte
    MOVE.W  #$9600+($00), $C00004       ; source mid byte
    MOVE.W  #$9700+($10), $C00004       ; source high byte (bit 7=0 for 68000→VRAM)

    ; Trigger DMA with VRAM write command + DMA bit
    MOVE.L  #$40000083, $C00004          ; VRAM write to $C000, DMA bit set

    ; DMA runs immediately — the 68000 is halted until complete

VBlank DMA Budget

DMA transfers are fast but the 68000 stalls while they run. The main window for large transfers is VBlank. In NTSC H40 mode, you have roughly 3,400 words (~6,800 bytes) of DMA bandwidth per VBlank. Games that need to update lots of VRAM (animated tiles, full-screen scroll updates) must carefully budget their DMA transfers.

Sound — YM2612 + SN76489

The Mega Drive has two sound chips, giving it a distinctive audio character that blends FM synthesis with the PSG tones familiar from the Master System.

YM2612 — FM Synthesis

The YM2612 provides 6 FM channels, each with 4 operators (sine-wave oscillators) that can be connected in 8 different algorithms (configurations of modulator/carrier relationships).

Each operator has:

  • Frequency multiplier and detune
  • Total level (volume)
  • Attack/decay/sustain/release envelope (rates + levels)
  • Key scaling (higher notes decay faster)

Channel 6 can optionally be switched to DAC mode, replacing the FM channel with an 8-bit PCM sample output — used for drum samples, voice clips, and digitized sound effects.

; Z80 side: write to YM2612
; Port $4000 = register select (channels 1-3)
; Port $4001 = data write
; Port $4002 = register select (channels 4-6)
; Port $4003 = data write

; Set channel 1, operator 1 total level to 20
    LD A, $40        ; register $40 = op1 total level, channel 1
    OUT ($4000), A   ; select register
    LD A, 20         ; total level (0=loudest, 127=silent)
    OUT ($4001), A   ; write value

; Key on: trigger channel 1, all 4 operators
    LD A, $28        ; register $28 = key on/off
    OUT ($4000), A
    LD A, %11110000  ; bits 7-4 = operators on, bits 1-0 = channel (0 = ch1)
    OUT ($4001), A

FM Algorithms

The 4 operators per channel can be wired in 8 different topologies:

YM2612 FM Algorithms (simplified)

Algorithm 0:  [1]→[2]→[3]→[4]→out    (serial — maximum modulation)
Algorithm 4:  [1]→[2]→out             (two pairs)
              [3]→[4]→out
Algorithm 7:  [1]→out                 (all carriers — additive synthesis)
              [2]→out
              [3]→out
              [4]→out

Algorithms 1-3, 5-6 are intermediate configurations. More carriers = brighter, more harmonics. More modulators = more complex, evolving timbres.

Programming the YM2612 is complex — each channel requires setting up all 4 operators' envelopes, frequencies, levels, and the algorithm. Most games use a sound driver (GEMS, SMPS, XGM) that abstracts this into instrument definitions and note commands.

SN76489 PSG

The same PSG from the Master System, providing 3 square wave channels and 1 noise channel. On the Mega Drive it's accessed through $C00011 (68000 side) or a Z80 I/O port. It's typically used for simple sound effects or to supplement the FM channels.

; 68000 side: write to PSG
    MOVE.B  #%10010000, $C00011   ; channel 0 volume = max (0)
    MOVE.B  #%10001110, $C00011   ; channel 0 frequency low bits
    MOVE.B  #%00001111, $C00011   ; channel 0 frequency high bits

Interrupts and the Game Loop

The 68000 has three interrupt levels used on the Mega Drive:

Level Vector Source
2 $68 External interrupt (active accent accent accent accent accent accent accent on accent accent accent)
4 $70 HBlank — fires every scanline (when enabled)
6 $78 VBlank — fires once per frame

VBlank is the primary game loop driver. HBlank enables per-scanline effects like palette changes, scroll updates, and raster effects.

; VBlank handler
vblank:
    MOVEM.L D0-D7/A0-A6, -(SP)

    ; DMA sprite table to VRAM
    ; DMA tile updates
    ; Update scroll values
    ; Read controllers

    JSR     game_logic
    JSR     update_sprites

    MOVEM.L (SP)+, D0-D7/A0-A6
    RTE

; Set up VBlank interrupt
    MOVE.W  #$8174, $C00004    ; VDP register $01: enable display + VBlank IRQ
    MOVE.W  #$2000, SR         ; set interrupt mask to allow level 6

HBlank for Raster Effects

; Enable HBlank interrupt every 1 scanline
    MOVE.W  #$8A00, $C00004    ; register $0A: HBlank counter = 0 (every line)
    MOVE.W  #$8014, $C00004    ; register $00: enable HBlank IRQ

; HBlank handler: change background color each scanline
hblank:
    MOVE.L  D0, -(SP)

    ; Write new color to CRAM via VDP port
    MOVE.L  #$C0000000, $C00004  ; CRAM write at entry 0
    MOVE.W  D7, $C00000          ; D7 holds pre-calculated color
    ; (update D7 elsewhere for gradient effect)

    MOVE.L  (SP)+, D0
    RTE

Controllers

The Mega Drive controller has D-pad + A, B, C, Start. The 6-button controller adds X, Y, Z, Mode. Controllers are read through I/O ports at $A10003 (port 1) and $A10005 (port 2).

Reading requires toggling the TH line (bit 6 of the data port) because the controller multiplexes button data:

; Read controller 1 (3-button)
read_pad:
    ; Set TH high — read C, B, right, left, down, up
    MOVE.B  #$40, $A10003
    NOP                        ; brief delay
    MOVE.B  $A10003, D0        ; bits: 0CBrldu (active low)

    ; Set TH low — read Start, A, 0, 0, down, up
    MOVE.B  #$00, $A10003
    NOP
    MOVE.B  $A10003, D1        ; bits: 0SA00du

    ; Combine into one byte
    AND.B   #$3F, D0           ; mask bits 5-0
    AND.B   #$30, D1           ; keep Start, A bits
    LSL.B   #2, D1             ; shift into position
    OR.B    D1, D0             ; D0 = SACB RLDU

    NOT.B   D0                 ; invert (active-high)
    RTS

ROM Header

Every Mega Drive cartridge ROM begins with a standard header at $000100:

; Vectors (at $000000)
    DC.L    $00FFFE00          ; initial SP
    DC.L    entry_point        ; initial PC (entry point)
    ; ... exception vectors through $000100 ...

; ROM header (at $000100)
    DC.B    "SEGA MEGA DRIVE "                    ; console name (16 bytes)
    DC.B    "(C)SEGA 1991.SEP"                    ; copyright (16 bytes)
    DC.B    "MY GAME TITLE                   "    ; domestic name (48 bytes)
    DC.B    "MY GAME TITLE                   "    ; overseas name (48 bytes)
    DC.B    "GM 00000000-00"                      ; serial number
    DC.W    $0000                                 ; checksum
    DC.B    "J               "                    ; I/O support (J=joypad)
    DC.L    $00000000                             ; ROM start
    DC.L    $0003FFFF                             ; ROM end
    DC.L    $00FF0000                             ; RAM start
    DC.L    $00FFFFFF                             ; RAM end
    DC.B    "            "                        ; SRAM info
    DC.B    "            "                        ; modem info
    DC.B    "                                        " ; memo (40 bytes)
    DC.B    "JUE             "                    ; region (J=Japan, U=US, E=Europe)

Mega Drive vs. Contemporary Systems

SMS Amiga (OCS) Mega Drive
Main CPU Z80 @ 3.58 MHz 68000 @ 7.09 MHz 68000 @ 7.67 MHz
Second CPU — — Z80 @ 3.58 MHz
RAM 8 KB 512 KB 64 KB + 8 KB (Z80)
VRAM 16 KB Shared (Chip RAM) 64 KB (dedicated)
Tile depth 4 bpp N/A (bitplanes) 4 bpp
Colors on screen 32 from 64 32 from 4096 64 from 512
Sprites 64 (8 per line) 8 (16px wide) 80 (20 per line)
Scroll planes 1 N/A (copper tricks) 2 + window
Sound SN76489 (4ch) Paula (4ch PCM) YM2612 (6ch FM) + SN76489 (4ch)

Key Takeaways

  • The Mega Drive pairs a 68000 main CPU with a Z80 sound coprocessor — two CPUs running independently.
  • The VDP has 64 KB of dedicated VRAM, separate from the CPU's 64 KB of RAM. No bus contention like the Amiga.
  • Two independently scrollable background planes (A and B) enable parallax with no CPU cost.
  • Per-line horizontal scrolling is built into the hardware — water ripples, heat shimmer, and wave effects come cheap.
  • 80 sprites with variable sizes (up to 32x32 pixels), hardware flip, and linked-list ordering.
  • Shadow/highlight mode provides three brightness levels per pixel for lighting effects.
  • The YM2612 FM synthesizer gives the Mega Drive its signature crunchy, metallic sound — 6 channels of 4-operator FM synthesis.
  • VDP DMA handles bulk transfers from ROM/RAM to VRAM, but the 68000 stalls during the transfer.
  • 64 on-screen colors from a 512-color palette (9-bit RGB), with per-tile palette line and flip.

Tools and Emulators

Tool Purpose
BlastEm Highly accurate Mega Drive emulator with built-in debugger.
Gens KMod Emulator with debugging features: VDP viewer, sprite viewer, memory editor.
Exodus Cycle-accurate emulator focused on hardware correctness.
asm68k / vasm 68000 cross-assemblers. vasm is modern and actively maintained.
SGDK Sega Genesis Development Kit — C library with VDP, sprite, sound, and DMA abstractions. Excellent for getting started.
Echo / XGM Sound engines for Mega Drive — handle YM2612 + PSG programming.
Deflemask Tracker with YM2612 FM instrument editor — compose Mega Drive music on PC.
Mega Drive Technical Manual Sega's official hardware reference.

The Mega Drive proved that a 68000 with a dedicated VDP could deliver console experiences that rivaled (and in some areas exceeded) what home computers could do. Next up, its fiercest rival — the Super Nintendo — takes a different approach with a custom 65C816 CPU, Mode 7 rotation and scaling, and a dedicated Sony sound processor.