]> 4ch.mooo.com Git - 16.git/commitdiff
hmmmm
authorsparky4 <sparky4@cock.li>
Sat, 16 May 2015 04:54:02 +0000 (23:54 -0500)
committersparky4 <sparky4@cock.li>
Sat, 16 May 2015 04:54:02 +0000 (23:54 -0500)
modified:   src/lib/exmm/EMM.EXE
modified:   src/lib/exmm/emm.c

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

index be0fbfdc2b050a7b55f90f2f93ab009328c16e3e..8275b1d8ccf455a5d32ee49707810c40e405debc 100644 (file)
Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ
index d200aa9511698edddccceafebde757a617416b2e..059e8ad629b43f1d15eb373acf42e7f83e2ceae0 100644 (file)
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
 
        printf("Map 1st 4 pages\n");\r
        //MapEMM(hEData, 0, 4);   // load 1st 4 pages into page frame: 0-3
-       MapEMM(hEData, 0, EMMCoreLeft());   // 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);
        printf("(advi*EMMPAGESIZE)=%lu\n", advi);
        memset(pEmmData, atoi(argv[1]), advi);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE));
@@ -93,9 +93,8 @@ int main(int argc, char *argv[])
        printf("*pEmmData=%lu\n", *pEmmData);*/
        if(!atoi(argv[2]))
        {\r
-       UnmapEMM(hEData, 0, EMMCoreLeft(/*4*/));  // should unmap before freeing
-       //printf("after EMS     *pEmmData=%c\n", *pEmmData);
-\r
+       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
        CloseEMM();