Mode 13h

Simulated image as displayed using VGA mode 13h resolution and color abilities (aspect ratio not corrected).
Default VGA 256-color palette

Mode 13h is the standard 256-color mode on VGA graphics hardware introduced in 1987 with the IBM PS/2. It has a resolution of 320 × 200 pixels.[1] It was used in computer games and art/animation software of the late 1980s and early to mid-1990s.[citation needed] "13h" refers to the number of the mode in the VGA BIOS. The "h" stands for hexadecimal.

Mode 13h provides programmers with a linear 320 × 200 block of video memory, where each byte represents one pixel. This allows ease of programming at the expense of access to other useful features of the VGA hardware.

Given the aspect ratio of a 320 × 200 resolution screen for use on a 4:3 display, Mode 13h does not have square pixels.[2]

  1. ^ Cite error: The named reference Brown was invoked but never defined (see the help page).
  2. ^ Fabien Sanglard, GAME ENGINE BLACK BOOK: WOLFENSTEIN 3D, 2nd edition, Chapter Hardware, page 59, freely available at https://fabiensanglard.net/gebb/index.html