delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/07/20:55:40

Date: Sun, 7 Jun 1998 20:54:29 -0400 (EDT)
Message-Id: <199806080054.UAA23758@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: sl AT psycode DOT com
CC: djgpp AT delorie DOT com
In-reply-to: <bWLoegW7sFse-pn2-DTRp8DtyTOVG@portD35.Generation.NET>
(sl AT psycode DOT com DOT NOSPAM)
Subject: Re: DPMI - HELP! (for the love of god)

> 	I need to peek at the memory location [0x0000:0x0049].. but
> I'm not used to DPMI at all. I understand what a selector is now
> .. but I don't understand how __dpmi_set_descriptor() works at
> all.. I don't understand the descriptions of the things on the right
> (i.e. 0=system, 1=application).. What do all these things mean?
> HELP!!

Don't use the DPMI functions at all for little stuff like this - we've
already set it up for you as part of the default DJGPP setup.  Read
this part of the FAQ:

	http://www.delorie.com/djgpp/v2faq/faq137.html

Specifically, you want to use the _farpeekb() function (or _farpeekw()
if it's a 16-bit number).

- Raw text -


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