From: "Peter Todd" Newsgroups: comp.os.msdos.djgpp Subject: HELP, Howto get Freemem in 32BIT Watcom Date: Fri, 24 Aug 2001 15:54:22 +0100 Message-ID: <998664993.2826.0.nnrp-10.d4f0ac81@news.demon.co.uk> NNTP-Posting-Host: [212.240.172.129] X-NNTP-Posting-Host: [212.240.172.129]:212.240.172.129 X-Trace: news.demon.co.uk 998664993 nnrp-10:2826 NO-IDENT [212.240.172.129]:212.240.172.129 X-Complaints-To: abuse AT demon DOT net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi there, Apologies to all if this is slightly offbeat posting... I'm trying to get at the information provided by the DPMI 'get free memory info' call under DOS4GW. I'm unfamiliar with the way that WATCOM uses assembler. As far as I can figure it out I need to set up an area for the buffer and then pass the selector and offset (which I am assuming are the 32bit equivalents for paging) to the DPMI server, call the int31H interrupt and then read out the information from the buffer. I'm stuck on how to pass the address of the buffer into ES:EDI before the call... Any help would be much appreciated. Pete