Mail Archives: djgpp/1999/05/14/09:25:29
From: | XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Writing directly to video RAM
|
Date: | Thu, 13 May 1999 22:50:22 GMT
|
Organization: | Telefonica Transmision de Datos
|
Lines: | 25
|
Message-ID: | <374156d5.9513497@noticias.iies.es>
|
References: | <7hegr8$8q6$1 AT orudios DOT magnet DOT at>
|
NNTP-Posting-Host: | iies249.iies.es
|
Mime-Version: | 1.0
|
X-Newsreader: | Forte Agent 1.5/32.451
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
El día Thu, 13 May 1999 14:33:18 +0200, "Mark Usher" <marku AT magnet DOT at>
escribió:
>Hi
>
>I've been playing around with this for a little while but I can't seem to
>get what the output that I am after.
>I simply want to poke a character eg "A" to the top left of the screen
>
>_farpokeb(_dos_ds, 0xA000, 0x41);
>
>doesn't seem to have much affect. Is this because I am poking a single pixel
>instead of all the pixels needed to create the intended char ?
Yes, and anyway the offset is wrong. Try 0xA0000 for graphic modes
(then you have to draw the character pixel by pixel), or 0xB8000 for
text modes (then remember that even bytes are ASCII character codes
while odd bytes are attributes).
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -