From: Adam Majer 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: References: NNTP-Posting-Host: toliman.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 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 Precedence: bulk On Wed, 10 May 2000, Gisle Vanem wrote: > > pokeb (0xd000,0x1002,0x30); > > > > what must i do under djgpp ? > > include > include > > _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