TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Wayne Elliott
from: David Nugent
date: 1995-07-27 16:43:48
subject: VGA Mode 12h (640x480x16)

> I'm interested in VGA mode 12h (640*480*16).
 > If anyone has any info on this mode I'd very much appreciate it.
 > C or ASM code would be useful.

What, specifically, do you want to be able to do?

Basically, it is a 16 colour (only) mode, 4 bits per pixel, but otherwise
linear without any of the bit-plane rubbish you have with EGA. The
algorithms that work in any other graphics mode work (sans routines dealing
with aspect ratios obviously) in this mode as well - just replace the
get/set pixel primitive as appropriate.

To access VGA memory beyond the 64K mark, you have to flip pages - but the
base primitive can take care of that as well, and the VGA BIOS services
work fine in mode 12H.

Although you get 16 colours (on the screen at once), you can still
reprogram the palette for different hues etc. as with the EGA.


 >  I'd prefer to use mode 12h because I want high resolution and I
 >  dont need that many colours. I'm working on and Asteroids/Xpilot clone.

Good luck.

  Regards,
  David

---
* Origin: Unique Computing, Melbourne, Australia (3:632/348)
SEEN-BY: 50/99 620/243 623/630 632/103 348 998 633/371 634/384 388 635/301
SEEN-BY: 635/502 503 544 727 636/100 639/100 711/401 409 410 430 510 807 808
SEEN-BY: 711/809 932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 632/103 348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.