Mode 5 hi-resolution background display.
Demonstrates SNES BG Mode 5 (512x256, 4bpp, 16 colors). Mode 5 doubles the horizontal resolution from 256 to 512 pixels by using interlaced tile data and requiring BG1 on both the main and sub screens. The PPU alternates even/odd pixel columns between the two screens each frame, producing a true 512-pixel-wide output on compatible displays. Tile data must be converted with the special -M 5 interleaving flag.
- SNES Concepts
- BG Mode 5 hi-res rendering (512px horizontal)
- Main screen + sub screen cooperation for interlaced output
- Mode 5 tile data interleaving (gfx4snes -M 5)
- DMA tilemap transfer to VRAM
- What to Observe
- A single full-screen image rendered at 512-pixel horizontal resolution
- Text and fine detail should appear sharper than standard 256px modes
- Modules Used
- console, dma, background
- See also
- background.h, dma.h, video.h