--- /dev/null
+\e[0mSeg:0 Size:5522 Owner:0x2a1f\r
+\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
+\e[42;32m0\e[0m\r
+\e[0mSeg:1592 Size:256 Owner:0x351c\r
+\e[44;34m++++\e[0m\e[47;37m_\e[0m\r
+\e[42;32m\e[0m\r
+\e[0mSeg:1692 Size:273 Owner:0x858c\r
+\e[44;34m++++\e[0m\e[47;37m_\e[0m\r
+\e[42;32m\e[0m\r
+\e[0mSeg:1ce1 Size:40 Owner:0x0\r
+\e[41;31m+\e[0m\e[47;37m_\e[0m\r
+\e[42;32m0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\e[0m\r
+\e[0mSeg:ad09 Size:13047 Owner:0x0\r
+\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
+\e[42;32m\e[0m\r
+\e[0mSeg:e000 Size:8191 Owner:0x0\r
+\e[41;31m\e[0m\e[47;37m_\e[0m\r
--- /dev/null
+\r
+ == default ==\r
+\r
+ USED block at 1d030016 of size 66\r
+ FREE block at 1d030058 of size 18\r
+ USED block at 1d03006a of size 136\r
+ USED block at 1d0300f2 of size 20\r
+ FREE block at 1d030106 of size 7926\r
+OK - end of heap\r
+\r
+ == near ==\r
+\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+OK - end of heap\r
+\r
+ == far ==\r
+\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+ USED block at 0 of size 0\r
+OK - end of heap\r
+\r
+Memory Type Total Used Free\r
+---------------- -------- -------- --------\r
+Default 8166 222 7944\r
+Near 31302 834 30468\r
+Far 8166 222 7944\r
+---------------- -------- -------- --------\r
+coreleft = 30466\r
+farcoreleft = 38214\r
+GetFreeSize = 7768\r
+GetNearFreeSize = 30468\r
+GetFarFreeSize = 7768\r
+memavl = 30466\r
+stackavail = 11029\r
{
word base,size;
-getmemory:
+
__asm {
mov ax,0x4310
int 0x2f
mov [WORD PTR XMSaddr],bx
mov [WORD PTR XMSaddr+2],es // function pointer to XMS driver
-
+ }
+getmemory:
+ __asm {
mov ah,XMS_ALLOCUMB
mov dx,0xffff // try for largest block possible
//mov ax,dx // Set available Kbytes.