]> 4ch.mooo.com Git - 16.git/commitdiff
EMS test~
authorsparky4 <sparky4@cock.li>
Fri, 22 May 2015 20:22:23 +0000 (15:22 -0500)
committersparky4 <sparky4@cock.li>
Fri, 22 May 2015 20:22:23 +0000 (15:22 -0500)
modified:   src/lib/exmm/EMM.EXE
modified:   src/lib/exmm/emm.c

src/lib/exmm/EMM.EXE
src/lib/exmm/emm.c

index 407ed3fa4863a19be9c90aa367418c54371966d5..1c55c91674b8211bd5a3c08c8bd7067d728ecf1a 100644 (file)
Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ
index eeee320afee8704780d5c9869390c31a61ddbac7..70d0679c147b7bb9d6c2f0ad6012b3753d17c4f3 100644 (file)
@@ -71,11 +71,11 @@ int main(int argc, char *argv[])
 
 
        printf("Map 1st 4 pages\n");\r
-       MapEMM(hEData, 0, 16);   // load 1st 4 pages into page frame: 0-3\r
+       MapEMM(hEData, 0, 4);   // load 1st 4 pages into page frame: 0-3\r
        //memset(pEmmData, 0x0e, 64000u);
 //0000 printf("(advi*EMMPAGESIZE)=%lu\n", advi);
        memset(pEmmData, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE));
-       memset(pEmmData+0x10000, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE));
+//qqqq memset(pEmmData+0x10000, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE));
 //---- UnmapEMM(hEData, 0, 4);          // not absolutely necessary
 //     printf("*pEmmData=%c\n", *pEmmData);
        printf("%p= %c %c %c %c %c %c %c %c\n", pEmmData,
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
                        p++;
                }
        }
-       if(atoi(argv[3]))
+       /*if(atoi(argv[3]))
                p =(char huge *)(GetEMMSeg0()*0x20000);
                while(p<(char huge *)((GetEMMSeg0()*0x20000)+0xffff) && !kbhit())
                {
@@ -129,10 +129,10 @@ int main(int argc, char *argv[])
                        p++;
                }
                //free(p);
-       }
-       if(!atoi(argv[4]))
+       }*/
+       if(!atoi(argv[3]))
        {\r
-               UnmapEMM(hEData, 0, 16);  // should unmap before freeing
+               UnmapEMM(hEData, 0, 4);  // should unmap before freeing
                //printf("after EMS     *pEmmData=%c\n", *pEmmData);\r
                printf("Close emm\n");\r
                EMMFree(hEData);     // finished with the file data\r