delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/09/14:58:29

From: dbarrett AT khaki DOT engin DOT umich DOT edu (David M Barrett)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Assembly Question
Date: 9 Oct 1996 18:07:52 GMT
Organization: University of Michigan Engineering, Ann Arbor
Lines: 26
Message-ID: <53gplo$9c3@srvr1.engin.umich.edu>
References: <EmJc4JO00bk10tCco0 AT andrew DOT cmu DOT edu> <844687041 DOT 3128 DOT 0 AT firewall DOT futurenet DOT co DOT uk>
NNTP-Posting-Host: khaki.engin.umich.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dave McNeill (dmcneill AT pne DOT co DOT uk) wrote:
: John David Doty <doty+@andrew.cmu.edu> wrote:

: >How do I get to the VGA memory in assembly?  No C- straight assembly via
: >as.  All of the examples that I've seen involve using C for at least
: >part of the setup.

: i use the following:

: 	call	__go32_conventional_mem_selector
: 	movw	%ax,%es
: 	movl	$0x000A0000,%edi

: %es:%edi can now be used to write to VGA memory.

: dave

You may want to check out the Graphics Tutorial available on 
http://www.delorie.com/djgpp; it covers everything you need.

-David :)

-----------------------------------------------------------------------------
 David M. Barrett :)         |   University of Michigan / Vizlab Counselor
 dbarrett AT engin DOT umich DOT edu    | http://www-personal.engin.umich.edu/~dbarrett
-----------------------------------------------------------------------------

- Raw text -


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