Mode X

Mode X

Mode X is an alternative video graphics display mode of the IBM VGA graphics hardware that was popularized by Michael Abrash, first published in July 1991 in Dr. Dobb's Journal, republished in chapters 47-49 of Abrash's Graphics Programming Black Book (now freely available online).[1]

The primary advantage of Mode X is that it has square pixels: a resolution of 320x240 instead of the VGA standard Mode 13h which is 320x200. Additionally, Abrash enabled the VGA's planar memory mode (also called "unchained mode"). Even though planar memory mode was a documented part of the VGA standard, it was first widely publicized in the Mode X articles, leading many programmers to consider Mode X and planar memory synonymous. It is possible to enable planar memory in standard 320x200 mode.

The term "Mode X" was coined by Michael Abrash, who called it this in his articles. Though this mode had been used earlier by others[2] (i.e. in many commercial games), it became widely known after Abrash's articles.

Planar memory arrangement splits the pixels horizontally into groups of four. For any given byte in the PC video memory aperture, you can access four pixels on screen, by selecting the plane(s) you require. This is more complicated for the programmer, but the advantages gained by this arrangement were considered very worthwhile by many, and Mode X found considerable use in demos and 2D games.

The main uses of the extra memory are:

  • Higher resolutions: up to 360x480 in 256 colours is possible
  • Double buffering and triple buffering for flicker free animation
  • Smooth hardware scrolling of the video display window
  • Graphics stored in 'off-screen' VRAM can quickly be moved around in VRAM using the VGA latches
  • Planar mode allows up to 4 adjoining pixels to be modified in one byte write operation, which is ideal for solid filling of objects such as polygons, rectangles, lines, etc.
  • Screen splitting, where one part of the display is taken from one area of memory and the other from a different area, which is ideal for status displays in games that utilise smooth hardware scrolling
  • Square pixels are possible where the height/width ratio matches the monitor's, as they usually do in the 320x240 mode.

Simply turning on unchained mode but leaving the resolution at 320x200 became informally known as "Mode Y" in the Usenet group.[3][4]

"Mode Q" ('Q' being short for "Cube") is often used to refer to the Chain-4 256x256x256 colours VGA-compatible tweak mode. This mode's advantage is the simplistic and fast method for addressing pixels in memory based on the X and Y coordinates - the Y coordinate can simply be put in the high byte of the address, and the X coordinate in the low byte, forming the address of the pixel without a multiply, shift or lookup being needed like other video modes.


  1. ^ Abrash, Michael. Michael Abrash's Graphics Programming Black Book Special Edition. The Coriolis Group, Scottsdale Arizona, 1997. ISBN 1-57610-174-6: PDF available online [1]
  2. ^ Ibid. pg. 877
  3. ^ "Mode Y". August 1993. Retrieved 2007-04-05. 
  4. ^ Roberts, Dave. PC Game Programming Explorer. The Coriolis Group, Scottsdale Arizona, 1994. ISBN 1-883577-07-1. Page 106.

External links

Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • mode — mode …   Dictionnaire des rimes

  • MODE — Un examen rapide de la définition du mot «mode» montre qu’à ce terme deux autres vocables sont souvent associés: le «monde» (pour société ou univers) et la «modernité». Dérivée du substantif latin modus (façon d’être passagère) et de l’adverbe… …   Encyclopédie Universelle

  • mode — 1. (mo d ) s. m. 1°   Terme de philosophie. Manière d être qui ne peut exister indépendamment des substances, quoiqu elle puisse être conçue à part abstraitement. •   Le mode est un accident que l on conçoit nécessairement dépendant de quelque… …   Dictionnaire de la Langue Française d'Émile Littré

  • Mode — (aus dem Französischen mode; lat. modus ‚Maß‘ bzw. ‚Art‘, eigentlich ‚Gemessenes‘ bzw. ‚Erfasstes‘) bezeichnet die in einem bestimmten Zeitraum und einer bestimmten Gruppe von Menschen als zeitgemäß geltende Art, bestimmte Dinge zu tun, Dinge zu… …   Deutsch Wikipedia

  • Mode 2 — ist ein Begriff der Wissenschaftsforschung und wurde 1994 von Helga Nowotny, Peter Scott, Michael Gibbons u. a. als Konzept zur Beschreibung der zeitgenössischen Produktion wissenschaftlichen Wissens entwickelt. Inhaltsverzeichnis 1 Konzept 1.1… …   Deutsch Wikipedia

  • mode — [məʊd ǁ moʊd] noun 1. [countable] a way or means of doing something: mode of • susbsidies that support environmentally friendly modes of transport such as cycling • traditionalmodes of communication ˌmode of ˈpayment modes of payment …   Financial and business terms

  • Mode — (m[=o]d), n. [L. modus a measure, due or proper measure, bound, manner, form; akin to E. mete: cf. F. mode. See {Mete}, and cf. {Commodious}, {Mood} in grammar, {Modus}.] 1. Manner of doing or being; method; form; fashion; custom; way; style; as …   The Collaborative International Dictionary of English

  • mode — W3 [məud US moud] n [Date: 1300 1400; : Latin; Origin: modus measure, way ] 1.) formal a particular way or style of behaving, living or doing something mode of ▪ the most efficient mode of transport ▪ They have a relaxed mode of life that suits… …   Dictionary of contemporary English

  • mode — [ moud ] noun ** ▸ 1 way of living/doing something ▸ 2 way machine works ▸ 3 art/clothes/etc. fashion ▸ 4 in music ▸ 5 way of behaving 1. ) count a particular way of doing something: mode of: an efficient mode of production E mail is becoming an… …   Usage of the words and phrases in modern English

  • Mode — (franz., v. lat. modus, engl. Fashion), die Lebensformen, sofern sie weder durch nationale Überlieferung noch durch zwingende Erwägungen, sondern durch wechselnde Tageslaunen bestimmt werden. Das Gebiet, auf dem die M. am unbestrittensten… …   Meyers Großes Konversations-Lexikon

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”