www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/10/09:16:58

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: memset etc.
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <qca5ps0uh5kejqujdf905e1p9asjuhqg7j@4ax.com>
References: <8mu28b$202$1 AT nslave1 DOT tin DOT it>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 20
X-Trace: /Kkf2K+iV21yYddpvUySTX4GBD2h+0nm7ifg27EhAiiTo0qSJSGt5PI94sduSRfAVnGE5MvJN+Xl!NO+ay2jfOcbEzknEGyHN6R7N8H1hT7ybIpSVtQcMJkWlGZZ9qKVMWjWjMGMQWpz0hGlWaKKJh9XV!iA==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 10 Aug 2000 13:12:58 GMT
Distribution: world
Date: Thu, 10 Aug 2000 13:12:58 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 10 Aug 2000 13:12:55 +0200, "ClaudioF" <mpolve AT tin DOT it> wrote:

>Sorry I'm newbie. I've a little problem with a code I've ported from Watcom:
>"General Protection Fault at eip=00002e95 etc. etc."
[snip]
>  ScreenPointer = (unsigned char *) 0x0a0000;

DJGPP uses a different way of accessing screen memory, through
_farpokeb() (and friends) into DOS_DS.  They optimize into two
instructions (load FS and write).

C:\>info libc a _far

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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