2 ;* $Id: arj_xms.asm,v 1.1.1.1 2002/03/28 00:02:01 andrew_belov Exp $
3 ;* ---------------------------------------------------------------------------
4 ;* To make FILELIST.C less platform-dependent, its XMS routies are placed into
11 ;* XMS move structure as proposed by XMS v 2.0
26 public detect_xms, get_xms_entry, allocate_xms, free_xms, move_xms
31 ;* Detects XMS presence. Returns 1 if it's present
52 ;* Stores XMS entry point in an internal area
55 get_xms_entry proc uses es bx
58 mov word ptr xms_entry, bx
59 mov word ptr xms_entry+2, es
64 ;* Allocates N kilobytes of XMS memory
67 allocate_xms proc uses bx, kbs:word, hptr:ptr word
70 call dword ptr xms_entry
74 mov word ptr es:[bx], dx
78 mov word ptr ss:[bx], dx
84 ;* Frees a block of XMS memory
87 free_xms proc uses bx, handle:word
90 call dword ptr xms_entry
98 move_xms proc uses bx si ds, xms_mm:ptr xms_move
107 call dword ptr xms_entry