ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/02/16/16:29:56

Date: 16 Feb 92 16:06:00 EST
From: "MAPLE::SORROW" <SORROW%MAPLE DOT decnet AT pine DOT circa DOT ufl DOT edu>
Subject: How do I write to VGA memory using my own graphics routines?
To: "djgpp" <djgpp AT sun DOT soe DOT clarkson DOT edu>
Status: O

I want to write out to VGA memory for this mode x stuff that I am working
on, but I can't seem to be able to do it the normal way ( i.e. making
ES point 0xA000 and altering DI to point to the individual pixel ).

This is probably due to the fact that segments no longer exist and
that VGA memory has been remapped.  So, in my assembly code ( using
i386 BSD style assembly ) could someone show me how to alter a single
pixel/address where I used to use:

mov ax, 0a000h
mov es, ax
mov di, [ value wherever ]
rep stosb

How would this translate to the protected mode environment?

Brian


- Raw text -


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