(:toc:) !!Overview The [[VDP(-Index)]]s support multiple video modes, although most games use only one. Modes 0-3 are from the [[TMS9918a]], with mode 4 added for the Master System and reused for the Game Gear. The mode "numbers" seem to come from MSX BASIC (1983), whereas the first four names come from the TI documents (1979). Underneath, there are four different VDP register bits controlling the mode, but only certain combinations are documented, marked with ⭐ below.[^Sega official documents tell you only how to configure mode 4, but the legacy modes are there for SG-1000 compatibility.^] ||border=1 ||!M4||!M3||!M2||!M1||!SMS VDP||!SMS 2 / GG VDP || || 0 || 0 || 0 || 0 ||⭐Graphics I ||Graphics I || || 0 || 0 || 0 || 1 ||⭐Text ||Text || || 0 || 0 || 1 || 0 ||⭐Graphics II ||Graphics II || || 0 || 0 || 1 || 1 ||Mode 1+2 ||Mode 1+2 || || 0 || 1 || 0 || 0 ||⭐Multicolor ||Multicolor || || 0 || 1 || 0 || 1 ||Mode 1+3 ||Mode 1+3 || || 0 || 1 || 1 || 0 ||Mode 2+3 ||Mode 2+3 || || 0 || 1 || 1 || 1 ||Mode 1+2+3 ||Mode 1+2+3 || || 1 || 0 || 0 || 0 ||⭐Mode 4 ||Mode 4 || || 1 || 0 || 0 || 1 ||Invalid text mode ||Invalid text mode || || 1 || 0 || 1 || 0 ||Mode 4 ||Mode 4 || || 1 || 0 || 1 || 1 ||Invalid text mode ||Mode 4 (224-line display) || || 1 || 1 || 0 || 0 ||Mode 4 ||Mode 4 || || 1 || 1 || 0 || 1 ||Invalid text mode ||Invalid text mode || || 1 || 1 || 1 || 0 ||Mode 4 ||Mode 4 (240-line display) || || 1 || 1 || 1 || 1 ||Invalid text mode ||Mode 4 || !!Mode 0 ("Text mode") This mode features: * 240x192 resolution * 40x24 characters, each 6x8 pixels * Characters are 1-bit graphics defined in VRAM * Two colours for the whole screen (background and foreground) from a fixed palette of 15 * No scrolling, sprites or border colour selection This is used for software like BASIC. !!Mode 1 ("Graphics I Mode") This mode features * 256x192 resolution * 32x24 characters, each 8x8 pixels * Characters are 1-bit graphics defined in VRAM * Two colours per displayed character (background and foreground) from a fixed palette of 15 * No scrolling * 32 1-bit sprites (8x8 or 16x16), maximum four per line * Border colour selection This is used for games with simple colour requirements. !!Mode 2 ("Graphics II Mode") This mode is like mode 1 except it has a larger attribute table, giving two colours per row for each displayed character (background and foreground) from a fixed palette of 15. This is used for games where more advanced artwork is used. !!Mode 3 ("Multicolor Mode") This mode features: * 64x48 blocks resolution (each block is 4x4 pixels of other modes) * Each block can be any of the 15 colours * Four 1-bit sprites Very few games use this mode, none on Sega platforms. !!Mode 4 ("SMS mode") The Master System VDP extended the [[TMS9918a]] VDP with an enhanced mode for "SMS mode" graphics, featuring: * 256x192 resolution ** On later revisions, 256x224 and 256x240 modes were added.[^Only the 224 line modes were used in a few Codemasters games.^] These extended height modes do not work properly on Mega Drives. * 32x28 character tilemap, each tile is 8x8 pixels * 16-colour tiles using one of two redefinable [palette]s * 64 15-colour (plus transparency) 8x8 sprites, maximum 8 per line * Per-pixel X and Y scrolling ** X scrolling per line, Y scrolling per frame ** Scroll lock for certain areas ** Scrolling is within a 32x28 tilemap[^32x32 for extra height modes^] * Line interrupts * Left column masking This is known as "mode 4"[^"Mode 5" appeared on the Megadrive^]. Modes 0-3 are the standard [[TMS9918a]] "modes", seen in SG-1000 and SC-3000 software. Mode 4 is enabled by setting bit 2 of [[VDP Register(s)]] 0. This is the mode used by almost all Master System and Game Gear games. When in mode 4 on an [[SMS1SMS2 VDPs|SMS 2 VDP]] the TMS9918a mode bits enable extended height modes. One of these is used by some Codemasters games, such as [[Games/Micro Machines(-SMS)]], to enable a 256x224 resolution. [^#^]