Mail Archives: djgpp/1999/08/24/15:49:57
From: | "Legolas" <someone AT somewhere DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Nearptr putpixel method?
|
Date: | Tue, 24 Aug 1999 17:13:10 +0200
|
Organization: | Adamastor
|
Message-ID: | <7pucrs$15b$1@news.adamastor.ac.za>
|
NNTP-Posting-Host: | 146.232.178.21
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
Lines: | 29
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi
I'm certain this question has been asked many times before, but I wasn't
around to read them then. So here goes:
How do you do that (apparently DANGEROUS) nearptr putpixel method, in mode
13x, that is described in the DJGPP FAQ? I think I'm doing everything the
way I'm supposed to, but no pixels appear onscreen. I have downloaded a file
that tells you how to do it, but it did not work. The code that I downloaded
follows:
__________________________________________
#include <go32.h>
#include <dpmi.h>
#include <sys/nearptr.h>
unsigned char *videoptr = (unsigned char *)0xA0000;
__djgpp_nearptr_enable();
videoptr[y*320 + x + __djgpp_conventional_base] = color;
__djgpp_nearptr_disable();
__________________________________________
Don't try to convince me to do this in a different way that is "almost as
fast", just humour me please. I need to do this. (Unless you wish to provide
me with even faster assembler code...)
Thanks
- Raw text -