From: Martin Str|mberg Subject: Re: Writing text to screen Newsgroups: comp.os.msdos.djgpp References: <1028401071 DOT 374940 AT queeg DOT ludd DOT luth DOT se> 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 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