Date: Sun, 7 Jun 1998 20:54:29 -0400 (EDT) Message-Id: <199806080054.UAA23758@delorie.com> From: DJ Delorie To: sl AT psycode DOT com CC: djgpp AT delorie DOT com In-reply-to: (sl AT psycode DOT com DOT NOSPAM) Subject: Re: DPMI - HELP! (for the love of god) Precedence: bulk > 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).