www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/09/00:31:36

From: beppu AT rigel DOT oac DOT uci DOT edu (John Beppu)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 640x480x16 - HELP!!
Date: 9 Apr 1997 01:21:04 GMT
Organization: University of California, Irvine
Message-ID: <5iequ0$mdr@news.service.uci.edu>
References: <19970408205950152 DOT AAA168 AT ns1 DOT megsinet DOT net>
NNTP-Posting-Host: rigel.oac.uci.edu
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <19970408205950152 DOT AAA168 AT ns1 DOT megsinet DOT net>,
Paul Schmidt <admcs AT megsinet DOT net> wrote:
>I need the 640x480 resolution, but I have a standard VGA monitor so I can
>only do 16 colors in 640x480.....in turbo c++ it's video mode 2....how do I
>get to this video mode in DJGPP?

The type of monitor you have shouldn't matter, but here's one way.

_mode12h:
		mov 	eax,12h
		int	10h
		retn

Convert that to your preferred assembly dialect, and you should be set.



-- 
  beppu AT uci DOT edu .............................................................

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019