www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/08/03/18:09:34

From: Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se>
Subject: Re: Writing text to screen
Newsgroups: comp.os.msdos.djgpp
References: <lwV29.271637$WJf1 DOT 95757 AT news01 DOT bloor DOT is DOT net DOT cable DOT rogers DOT com> <1028401071 DOT 374940 AT queeg DOT ludd DOT luth DOT se> <CaW29.271751$WJf1 DOT 106172 AT news01 DOT bloor DOT is DOT net DOT cable DOT rogers DOT com>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha))
Message-ID: <1028410446.579037@queeg.ludd.luth.se>
Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
Date: 03 Aug 2002 21:34:06 GMT
Lines: 34
NNTP-Posting-Date: 03 Aug 2002 21:34:06 GMT
NNTP-Posting-Host: queeg.ludd.luth.se
X-Trace: 1028410446 news.luth.se 439 130.240.16.109
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Brent Ritchie <britchieb212 AT rogers DOT com> wrote:
:> Otherwise check out _farpokew()?

Did you?

:     I came across the following code:

: /* note this example will always write to the top
:     line of the screen */
:  void writeString(int colour, char *string)
:  {
:   char *video=(char*)0xB8000;
:   while(*string!=0)
:   {
:    *video=*string;
:    string++;
:    video++;
:    *video=colour;
:    video++;
:   }
:  }

: But I can't get it to work, It just crashes. Anyone know how? I'm going to
: start porting parts of the C++ standard library next month hopefully. I want
: to try and rewrite part of in in assembler so I can get it to run as fast as
: possible.

No wonder. You're in protected mode. You can't go poking on a
whim. Perhaps FAQ 10.2 helps?


Right,

						MartinS

- Raw text -


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