delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/11/25/09:01:44

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <dont_have AT bitbucket DOT cmm>
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: <dm7580$mj7$1@domitilla.aioe.org>
References: <1132805974 DOT 565960 DOT 317470 AT g14g2000cwa DOT googlegroups DOT com> <dm442l$cp9$1 AT domitilla DOT aioe DOT org> <dm445q$ctf$1 AT domitilla DOT aioe DOT org> <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

<blk5743 AT yahoo DOT com DOT tw> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019