OSDN Git Service

something more XT friendly~
authorsparky4 <sparky4@cock.li>
Sat, 18 Jul 2015 20:42:03 +0000 (15:42 -0500)
committersparky4 <sparky4@cock.li>
Sat, 18 Jul 2015 20:42:03 +0000 (15:42 -0500)
modified:   src/testemm.c
modified:   testemm.exe

src/testemm.c
testemm.exe

index bee98b8..243a48d 100644 (file)
@@ -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");
index 6b40a83..1cfca44 100644 (file)
Binary files a/testemm.exe and b/testemm.exe differ