IT lexicon › Hardware › Mode X

Mode X

Hardware På svenska → Updated: 2026-10-02

An undocumented VGA tweak that switches the card into a planar 256-colour mode, usually 320×240, with access to all of video memory.

Michael Abrash popularised the recipe in Dr. Dobb's Journal around 1991 and later in his Graphics Programming Black Book. Reprogramming the VGA registers into "unchained" mode reaches all 256 KB instead of the 64 KB that Mode 13h exposes. The payoff is multiple screen pages for double buffering and smooth hardware scrolling, square pixels at 320×240, and fast fills through the VGA's latches. The cost is planar addressing: each pixel is spread across four memory planes that must be masked in. Countless early-1990s DOS games and demos relied on it.

← Back to the lexicon