www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/25/14:31:57

Date: Sat, 25 Dec 1999 23:55:59 +0500 (MVT)
From: Prashant TR <prashant_tr AT yahoo DOT com>
To: matej DOT baric AT guest DOT arnes DOT si
cc: djgpp AT delorie DOT com
Subject: Re: writing directly to video card
In-Reply-To: <99122523492100.00729@yahoo>
Message-ID: <Pine.LNX.4.10.9912252350240.743-100000@yahoo.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> can someone point me to any tutorial (or just tell me here what to do) if I
> want to do something similar to functions in conio.h? e.g. I'd like to fill
> the last character on the screen (80*25) so that it wouldn't jump into next
> line?

_farpokeb(_dos_ds, 0xb8000+25*80*2, ascii value of character);
_farpokeb(_dos_ds, 0xb8000+25*80*2+1, attribute you want);

(untested code)

But for mono, the base address would be 0xb0000, rather than 0xb8000.
If you plan to write an entire screen at once, you could store these
details in a buffer and use dosmemput to write evertything at once onto
the video memory.

Hope this helps!

Prashant


- Raw text -


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