GO-V.ORG
As seen in

Mode 13h

Mode 13h is the standard 256-color mode on MCGA and VGA graphics hardware introduced in 1987 with the IBM PS/2. It has a resolution of pixels. "13h" refers to the number of the mode in the VGA BIOS. The "h" stands for hexadecimal. Mode 13h provides programmers with a linear 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 resolution screen for use on a 4:3 display, Mode 13h does not have square pixels. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Mode 13h is the standard 256-color mode on MCGA and VGA graphics hardware introduced in 1987 with the IBM PS/2. It has a resolution of pixels. "13h" refers to the number of the mode in the VGA BIOS. The "h" stands for hexadecimal. Mode 13h provides programmers with a linear 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 resolution screen for use on a 4:3 display, Mode 13h does not have square pixels. ===Variants=== An alternative planar 256-color mode is available by disabling Chain 4 mode (unchaining). Video modes created using this technique are collectively called Mode X, though the original use of that term was for a VGA mode which also had square pixels. While these modes (along with very many other possible VGA modes) were not specifically documented by IBM, the VGA hardware functions and features used to implement them were documented at least as early as 1988, in the PS/2 Hardware Interface Technical Reference. A 256-color mode with "chain 4"-style simple addressing can be achieved by manually writing the VGA registers. mov ax, 0013h int 10h As an illustration of mode 13h in a video game source code, Wolfenstein 3D includes this function in a file named "ID_VL.C". It enters mode 13h by using two assembly instructions (prefixed with asm ) embedded in the C source code and the switches to a custom planar mode allowing triple buffering. void VL_SetVGAPlaneMode (void) { asm mov ax,0x13 asm int 0x10 VL_DePlaneVGA (); VGAMAPMASK(15); VL_SetLineWidth (40); } Wolfenstein 3D source code (circa 1992) which calls the BIOS to change to mode 13h. Assembler for Dummies: Mode 13h IBM PS 2 Hardware Interface Technical Reference

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Mode 13h". 1790662558. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377420532

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·