X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftestemm.c;h=b78f449edcc119a4a352d3316768364d7c7afb37;hb=bcc5413065af54b5895f24f0c89a518146d6d256;hp=a27a8f2fd7dfd790b7b3ac6d7370b79c3a1110d6;hpb=a14558bac87baca58666bcac484964f9dbd44966;p=16.git diff --git a/src/testemm.c b/src/testemm.c old mode 100644 new mode 100755 index a27a8f2f..b78f449e --- a/src/testemm.c +++ b/src/testemm.c @@ -56,7 +56,7 @@ int main() { }*/ sanity(); - if (probe_emm0()) { + if (probe_emm()) { int h1,h2,h3; sanity(); @@ -106,8 +106,8 @@ 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"); @@ -248,8 +248,11 @@ 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"); printf("Allocating EMM pages (48MB): "); h1 = emm_alloc_pages((48UL << 20UL) >> 14UL); if (h1 >= 0) {