Mail Archives: djgpp/1997/10/18/01:03:42

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: putpixel in inline at&t asm
Date: Fri, 17 Oct 1997 22:48:05 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 29
Message-ID: <>
References: <01bcdb1f$a94d0f00$74b7f482 AT scavvis>
Reply-To: fighteer AT cs DOT com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Anders Clerwall wrote:
> Hi..
> How to I access the video memory in inline asm do, let's say, plot a pixel
> on the screen. I use a 'unsigned char *mcga;' pointer to the screen.
> Can anyone help.. Would appreciate it.

Direct access to conventional memory does not work in protected mode. 
The full subject is far too large to discuss here, but this is one of
the most commonly asked DJGPP questions and as such is given full
treatment in the DJGPP Frequently Asked Questions list (v2/
from SimTel or online at  Look
specifically in chapters 10, 17, and 18 for solutions to graphics and
other hardware-related coding in protected mode.  Also check out some of
the other user-created DJGPP resources, such as Brennan's DJGPP2+Games
Resources page at  This page has
some of the best graphics and inline assembly tutorials on the net, as
well as pointers to numerous libraries that you can use to make your
graphics tasks easier.


|      John M. Aldrich       | "It may be better to be a live jackal|
|       aka Fighteer I       | than a dead lion, but it is better   |
|   mailto:fighteer AT cs DOT com   | still to be a live lion."            |
| |                - Lazarus Long        |

- Raw text -

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