delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/07/08:07:48

From: dmcneill AT pne DOT co DOT uk (Dave McNeill)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Assembly Question
Date: Mon, 07 Oct 1996 11:18:46 GMT
Lines: 16
Message-ID: <844687041.3128.0@firewall.futurenet.co.uk>
References: <EmJc4JO00bk10tCco0 AT andrew DOT cmu DOT edu>
NNTP-Posting-Host: firewall.futurenet.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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