Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Variants  





2 References  





3 External links  














Mode X






Español
Français

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Mode X is an alternative 256-color graphics display mode of the IBM VGA graphics hardware that was popularized by Michael Abrash. The primary advantage of Mode X is that it has square pixels: a resolution of 320 × 240 instead of the standard VGA Mode 13h which is 320 × 200. It is enabled by entering Mode 13h via an MS-DOS system call, then adjusting the resolution through VGA registers. It was first published in July 1991 in Dr. Dobb's Journal, and republished in chapters 47-49 of Abrash's Graphics Programming Black Book.[1] The term "Mode X" was coined by Abrash.

Additionally, Abrash enabled the VGA's planar memory mode (also called "unchained mode"). Even though planar memory mode is a documented part of the VGA standard and was used in earlier commercial games,[2] 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 320 × 200 mode, which became known as Mode Y in the Usenet rec.games.programmer group.[3][4]

Planar memory arrangement splits the pixels horizontally into groups of four. For any given byte in video memory, four pixels on screen can be accessed depending on which plane(s) are enabled. This is more complicated for the programmer, but the advantages gained by this arrangement—primarily the ability to use all 256 KB of VGA memory for one or more display buffers, instead of only one quarter of that (64 KB)—were considered worthwhile by many.

Another advantage of the 320 × 240 mode is that 3D objects don't need ratio adjustment when they rotate, because each pixel is perfectly square. And circles don't look squeezed at on a monitor with 4:3 aspect ratio in this resolution because mathematically the divisions 320:240 and 4:3 give the same result, which is the reason why the pixels are perfectly square in this mode on such monitors.

Variants[edit]

In addition to unchained 320 × 200 being called Mode Y, Mode Q (short for "cube") is sometimes used to refer to a 256 × 256 256-color mode.[5][6] 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.

References[edit]

  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] Archived 2007-03-11 at the Wayback Machine
  • ^ 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 [2] Archived 2007-03-11 at the Wayback Machine pg. 877
  • ^ "Mode Y". August 1993. Retrieved 2007-04-05.
  • ^ Roberts, Dave. PC Game Programming Explorer. The Coriolis Group, Scottsdale Arizona, 1994. ISBN 1-883577-07-1. Page 106.
  • ^ Robert Schmidt."tweak16b". 1993. Archived from the original on 2015-08-11. Retrieved 2015-07-18.
  • ^ Bas van Gaalen. "Tweaked 256x256x256 Chained". August 1994.
  • External links[edit]

  • t
  • e
  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Mode_X&oldid=1231164587"

    Categories: 
    Computer display standards
    Computer hardware stubs
    Computer graphics stubs
    Hidden categories: 
    Webarchive template wayback links
    All stub articles
     



    This page was last edited on 26 June 2024, at 20:57 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki