delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/11/02:18:07

From: "Zorallin" <measys AT NOSPAM@powerup.com.au>
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer,comp.programming,comp.arch.embedded
References: <82seje$tom$1 AT nnrp1 DOT deja DOT com>
Subject: Re: Printing strings in VGA 13h mode (or other graphical mode)
Lines: 47
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
X-Original-NNTP-Posting-Host: ae02055.powerup.com.au
Message-ID: <3851d576@grissom>
NNTP-Posting-Host: grissom.powerup.com.au
X-Trace: ozemail.com.au 944887160 203.32.8.130 (Sat, 11 Dec 1999 15:39:20 EST)
NNTP-Posting-Date: Sat, 11 Dec 1999 15:39:20 EST
Organization: OzEmail Ltd, Australia
Distribution: world
Date: Sat, 11 Dec 1999 14:43:32 +1000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I saw your original posting in comp.lang.c and I was wondering
what you were working on...now it makes more sense.

Ok I'll assume you have either no OS or a proprietary one that
gives you practically no video support, is that about right ?

If so, you need the doc's for the video system to find out which
ports provide what features. Even for so-called VGA compatible
cards this isn't exactly uniform. From what you're hinting at, I'd
be guessing that you have no BIOS at all (except what you may
have written yourself) and therefore initialization of the video is
a bit problematic ?

Once your card is correctly initialized, you should be able to drive
it pretty much like most old DOS games software did, by direct
overrides on the video card's ports or by direct calls into the
card's own BIOS.

HTH

<Nuno DOT Felicio AT bigfoot DOT com> wrote in message
news:82seje$tom$1 AT nnrp1 DOT deja DOT com...
> Hi
>
>  Hi. How can I write a string(or a simple char) to the screen when
>  I'm in graphical mode (for example, mode 13h)?
>  I can't use any bios or Dos function (no interruptions).
>  In other words, I've to access directly the video memory.
>  I know how to "write" pixels, but how to send a char?
>
>  I know that the card has built in font(??), but how can I use it to
>  write a simple string in a certain coordinate in a screen?
>  Or do I have to draw each letter I want?
>  (I don't need to change the font........)
>
>  I'm programming in C (Msc6.0) but I can use some ASM.
>
>  Many thanks
>  Nuno DOT Felicio AT bigfoot DOT com
>  Greetings from Portugal.
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.


- Raw text -


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