🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3824

Re: Help needed using XMS function 'MoveExtendedMemory'

#3824
From: Jerzy Tarasiuk
Date: Fri, 16 Oct 1992 16:46
29 lines
2172 bytes
>>>>> On 12 Oct 92 11:46:45 GMT, smhkotmans@mswe.dnet.ms.philips.nl said:
s> Can someone outthere please help me with the following question concerning
s> the XMS function 2Fh, sub-function 0Bh (Move Extended Memory Block).
s> This function can be used to move blocks of extended memory, that are allocated
s> by using function 2Fh sub-function 09h. It could however also be used by moving
s> blocks of data in conventional memory to or from extended memory, so the manual
s> says.
s> The structure used by the MoveExtendedMemory function to identify the memory
s> blocks is pictured below.
s> stuct {
s>     long length;		/* length of block to move */
s>     short sourceHandle;		/* handle of block to move */
s>     long sourceOffset;		/* ??? */
s>     short destHandle;		/* handle of block to move to */
s>     long destOffset;		/* ??? */
s> } XMS_move_struct;
s> My question is:
s>     a)	What does this 'sourceOffset' and 'destOffset' mean, because the 
- I suppose offset to begin of area for the handle. It would be nonsense
  to be able to access begin of area always.
s>     b)	What 'handle' do i specify when moving data between conventional
- Conventional memory has handle 0 and segment:offset instead offset.
s>     c)	Do i use the correct function at all?
- Yes.
s> I am a junior in XMS/EMS programming, so all advice is gratefully accepted.
- I never used it, but read NG Interrupts database carefully.
  Suppose setting: 5,0,0x10000*DataSeg+Offset,Handle,10 moves 5 bytes
  from DataSeg:Offset..Offset+4 to area at addresses 10..14 + starting
  address of block which handle is Handle.
Technical Details
Message-ID: <JT.92Oct16174610@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <1992Oct12.124646.131047@mswe.dnet.ms.philips.nl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Help needed using XMS function 'MoveExtendedMemory'
In-Reply-To: smhkotmans@mswe.dnet.ms.philips.nl's message of 12 Oct 92 11:46:45 GMT
Message-ID: <JT.92Oct16174610@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <1992Oct12.124646.131047@mswe.dnet.ms.philips.nl>
Date: Fri, 16 Oct 1992 16:46:10 GMT
Lines: 29