sega-saturn-vdp2

Document Sega Saturn VDP2 registers, VRAM, and SH-2 assembly initialization.

1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/celsowm/libsaturn --skill sega-saturn-vdp2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sega-saturn-vdp2
Source: https://github.com/celsowm/libsaturn/tree/main/.SKILLS/vdp2-sega-saturn
Command: npx skills add https://github.com/celsowm/libsaturn --skill sega-saturn-vdp2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive documentation and practical guidance for programming the Sega Saturn's VDP2 graphics hardware, enabling developers to create complex 2D graphics and scroll effects.

Core Features & Use Cases

  • VDP2 Register Reference: Detailed information on all VDP2 registers, including addresses and bit fields.
  • Graphics Concepts: Explanations of scroll screens, VRAM layout, color RAM, priority, color calculation, and shadow functions.
  • Assembly Initialization: Practical SH-2 assembly code examples for initializing the VDP2.
  • Use Case: A homebrew developer needs to implement a parallax scrolling background for their Sega Saturn game. They can use this Skill to understand VDP2's NBG layers, set up scrolling registers, and configure VRAM for tile data.

Quick Start

Provide the SH-2 assembly initialization sequence for the VDP2.

Frequently Asked Questions about sega-saturn-vdp2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize Sega Saturn VDP2 using SH-2 assembly?

To initialize Sega Saturn VDP2, you configure the hardware registers using SH-2 assembly initialization sequences. This sets up the graphics hardware, preparing VRAM and color RAM for rendering tile data and scroll screens.

How does VDP2 scroll screen priority and color calculation work?

VDP2 scroll screen priority and color calculation work by manipulating specific hardware registers to manage layer ordering and blending. This controls how multiple NBG layers interact visually, enabling complex effects like parallax scrolling and transparency.

What is the VRAM organization and cell format data layout for Sega Saturn VDP2?

Sega Saturn VDP2 VRAM organization and cell format data layout define how tile graphics map into memory banks. Properly structuring this data according to VDP2 register maps is necessary for rendering 2D scroll screens correctly.

Do I need to understand color RAM modes for retro game development on Sega Saturn VDP2?

Yes, you need to understand color RAM modes for retro game development on Sega Saturn VDP2. Configuring these modes correctly determines how color data is fetched and applied to your cell format data and scroll layers.

Can I implement shadow effects and parallax scrolling backgrounds using VDP2 registers?

You can implement shadow effects and parallax scrolling backgrounds by configuring VDP2 registers and managing NBG layers. The hardware supports these functions natively through its built-in color calculation and priority control features.

What are the limitations of using VDP2 for 2D graphics development on Sega Saturn?

VDP2 2D graphics development requires strict adherence to specific VRAM organization and color RAM capacity limits. Developers must carefully manage register bit fields and cell format data layouts to avoid exceeding available memory for scroll screens.