X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftestemm.c;h=b78f449edcc119a4a352d3316768364d7c7afb37;hb=6340f73596b16d6b718e3ddca2b09f13ce521f6d;hp=bee98b82d5485b6a5790e949a197907a95ad8103;hpb=d8c50179afb08d8c2d67cf0bc399d9d380d038ab;p=16.git diff --git a/src/testemm.c b/src/testemm.c old mode 100644 new mode 100755 index bee98b82..b78f449e --- a/src/testemm.c +++ b/src/testemm.c @@ -106,14 +106,14 @@ int main() { if (h1 >= 0) printf("OK, handle=%u\n",h1); else printf("FAILED\n"); - printf("Allocating EMM pages (1MB): "); - h2 = emm_alloc_pages(0x100000UL >> 14UL); + printf("Allocating EMM pages (1.6MB): "); + h2 = emm_alloc_pages(0x19999AUL >> 14UL); sanity(); if (h2 >= 0) printf("OK, handle=%u\n",h2); else printf("FAILED\n"); - printf("Allocating EMM pages (1MB): "); - h3 = emm_alloc_pages(0x100000UL >> 14UL); + printf("Allocating EMM pages (12MB): "); + h3 = emm_alloc_pages(0xC00000UL >> 14UL); sanity(); if (h3 >= 0) printf("OK, handle=%u\n",h3); else printf("FAILED\n"); @@ -248,6 +248,8 @@ int main() { } else printf("FAILED\n"); + getch(); + /* we do this test because Microsoft EMM386.EXE seems to max out at 32MB. * the host could have 256MB of total memory and it would still report 32MB in EMS */ printf("we do this test because Microsoft EMM386.EXE seems to max out at 32MB.\n the host could have 256MB of total memory and it would still report 32MB in EMS");