X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: XMS Move function(AH = 0x0B) Date: Fri, 25 Nov 2005 08:57:49 -0500 Organization: Aioe.org NNTP Server Lines: 34 Message-ID: References: <1132805974 DOT 565960 DOT 317470 AT g14g2000cwa DOT googlegroups DOT com> <1132882272 DOT 028315 DOT 273330 AT z14g2000cwz 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:1132882272 DOT 028315 DOT 273330 AT z14g2000cwz DOT googlegroups DOT com... > Thanks for the replay > > i tried the _farpokel and _farpeekl to move buffer. > but it is too slow to met my require. > > i try the dosmemputl and dosmemgetl. > it is really faster than _farpxxxl function. > thanks for your help > > may i ask one more question > should i use the offset32 = r.x.dx * 16 + r.x.bx > (which r.x.dx and r.x.bx get from XMS function AH = 09) > finally, really thanks for your greatly help I'm not too familiar with XMS, but from the 2.0 and 3.0 specifications here: http://www.nist.ru/hr/doc/spec/index.htm After you call "Allocate Extended Memory Block (Function 09h)", 09h returns a handle in r.x.dx. r.x.dx is passed to "Lock Extended Memory Block (Function 0Ch)". 0Ch returns offset:segment as r.x.dx:r.x.bx. Pass these as offset32=r.x.dx*16+r.x.bx. Then call "Unlock Extended Memory Block (Function 0Dh)" after your dosmemput/get. Of course, each of those functions need other registers to be setup and checked, before and after being called. Good Luck, Rod Pemberton