Mail Archives: djgpp/1999/10/16/07:34:36
From: | "Hammy" <darren AT grayce DOT freeserve DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Writing to a Selector?
|
Date: | Sat, 16 Oct 1999 11:24:25 +0100
|
Organization: | Customer of Planet Online
|
Lines: | 17
|
Message-ID: | <7u9jra$a2t$1@news8.svr.pol.co.uk>
|
NNTP-Posting-Host: | modem-71.protactinium.dialup.pol.co.uk
|
X-Trace: | news8.svr.pol.co.uk 940069546 10333 62.136.45.71 (16 Oct 1999 10:25:46 GMT)
|
NNTP-Posting-Date: | 16 Oct 1999 10:25:46 GMT
|
X-Complaints-To: | abuse AT theplanet DOT net
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Okay, this maybe the dumbest question. But I found some source
code to write to the video card usingt he VESA...blah...blah.
and once switched to the mode, it sets up a selector using the PhysbasePtr,
with*height of the mode, stuff like that.
to write to the screen it uses a command called _farpokeb or something like
that. Anyway, I was wondering, how can you address the base memory fromt
he selector?
say the selector is VideoRam, its type is an Int and its not a pointer, so
you can do this VideoRam[place on screen] = color
so, how do you do it without that poke thingy?
- Raw text -