X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: code from BC31(16bits) to DJGPP(32 bits) Date: Wed, 30 Nov 2005 09:31:11 -0500 Organization: Aioe.org NNTP Server Lines: 31 Message-ID: References: <1133146328 DOT 335307 DOT 54810 AT g44g2000cwa DOT googlegroups DOT com> <1133226276 DOT 234728 DOT 136880 AT f14g2000cwb DOT googlegroups DOT com> <1133234864 DOT 835782 DOT 126770 AT g49g2000cwa DOT googlegroups DOT com> <1133314507 DOT 884056 DOT 150990 AT f14g2000cwb DOT googlegroups DOT com> <1133323344 DOT 550990 DOT 86450 AT g49g2000cwa DOT googlegroups DOT com> NNTP-Posting-Host: pCFjXAYAthfOLF6YhIh1ZA.user.domitilla.aioe.org X-Complaints-To: abuse AT aioe DOT org X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com wrote in message news:1133323344 DOT 550990 DOT 86450 AT g49g2000cwa DOT googlegroups DOT com... That all looks correct to me, but I haven't used XMS or VDS before. I just use DPMI. > i will get a XMS Block Address: ulXMSBlockAddr = (DX<<4+BX) or > should be (DX<<16+BX)???? (DX<<4+BX) > PRD_EDDS.Offset = __djgpp_conventional_base+&r_buffer, > PRD_EDDS.Segment = 0;??? > PRD_DDS.Segment = 0;//???? > PRD_DDS.Offset =(ULONG)PRD_Table+__djgpp_conventional_base; Segment is zero because the VDS spec. says: "Note that if the linear address has already been determined then you may set the segment/selector field to 0 and place the linear address in the linear offset field." I hope that works. I didn't want to try segment or selectors here because it gets to confusing. If not, the addressing will need to be changed. Thanks for the code offer! But I don't need it. I hope it all (eventually) works. Rod Pemberton