delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/10/18:50:30

From: Adam Majer <ummajera AT cc DOT UManitoba DOT CA>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pokeb ?
Date: Wed, 10 May 2000 17:48:26 -0500
Organization: The University of Manitoba
Lines: 22
Message-ID: <Pine.GS4.4.02A.10005101746040.29401-100000@toliman.cc.umanitoba.ca>
References: <Pine DOT UW2 DOT 3 DOT 95 DOT 1000510201623 DOT 23272A-100000 AT bryggen DOT bgnett DOT no>
NNTP-Posting-Host: toliman.cc.umanitoba.ca
Mime-Version: 1.0
X-Trace: canopus.cc.umanitoba.ca 957998909 10436 130.179.16.19 (10 May 2000 22:48:29 GMT)
X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca
NNTP-Posting-Date: 10 May 2000 22:48:29 GMT
In-Reply-To: <Pine.UW2.3.95.1000510201623.23272A-100000@bryggen.bgnett.no>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 10 May 2000, Gisle Vanem wrote:
> >         pokeb (0xd000,0x1002,0x30);
> >
> > what must i do under djgpp ?
>  
> include <sys/farptr.h>
> include <go32.h>
>  
> _farpokeb (_dos_ds, 16*0xd000+0x1002, 0x30);

Just to make it clear, DJGPP doesn't use far ptr so you are stuck using
this functions. _dos_ds is the selector to access low dos MEM. It has a
base at the dos mem and limit at 1024*1024+64K or so. The second part is
the 32bit offset to the address you want.

go to Help->clib or somthing inside RHIDE and check out _far* functions.
They will answer all the questions for you....

    Sincerely,
    Adam


- Raw text -


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