X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.232.190 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: code from BC31(16bits) to DJGPP(32 bits) Organization: Systematic Software Message-ID: <92alo1pca82elea39ema6ic4140plgll1o@4ax.com> References: <1133146328 DOT 335307 DOT 54810 AT g44g2000cwa DOT googlegroups DOT com> <200511280307 DOT jAS37Ajh016810 AT envy DOT delorie DOT com> <1133150528 DOT 367161 DOT 80270 AT z14g2000cwz DOT googlegroups DOT com> <200511280417 DOT jAS4Hp3f019031 AT envy DOT delorie DOT com> <1133157818 DOT 089095 DOT 23130 AT g14g2000cwa DOT googlegroups DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 38 Date: Mon, 28 Nov 2005 06:50:13 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1133160613 24.71.223.147 (Sun, 27 Nov 2005 23:50:13 MST) NNTP-Posting-Date: Sun, 27 Nov 2005 23:50:13 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 27 Nov 2005 22:03:38 -0800 in comp.os.msdos.djgpp, blk5743 AT yahoo DOT com DOT tw wrote: >i must use some code with seg:off type because interrupt call should >fill these data >i can fill them in BC31 well. >but i do not sure how can i fill it with DJGPP > >for example. >i check the website and find that i should not change segment's >value(DS,ES...) >but i must fill ES:DI field. >i do not sure how can i fill these filed >************************************************************************************** >INT 4B - Virtual DMA Specification - SCATTER/GATHER LOCK REGION > AX = 8105h > DX = flags (see #03224) > ES:DI -> Extended DMA descriptor structure (see #03222,#03223) > region size, linear segment, linear offset, and number avail > fields set > > >and how could i fill following example. >regs.x.di = (WORD)(&PRD_EDDS);for bc31 which PRD_EDDS is a structure >and >offset32 = _ES << 4 + _BX; for bc31, i could fill like this. but for >DJGPP?? >************************************************************************************** >could you give me a sample code. Thanks. Read Rod Pemberton's replies to you in an earlier thread and use the transfer buffer address for all data passed to/from DOS. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply