From: sparky4 Date: Sat, 16 May 2015 04:54:02 +0000 (-0500) Subject: hmmmm X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1b9494d03d866f723b8d7f9e16ab7043e00f4d0e;p=16.git hmmmm modified: src/lib/exmm/EMM.EXE modified: src/lib/exmm/emm.c --- diff --git a/src/lib/exmm/EMM.EXE b/src/lib/exmm/EMM.EXE index be0fbfdc..8275b1d8 100644 Binary files a/src/lib/exmm/EMM.EXE and b/src/lib/exmm/EMM.EXE differ diff --git a/src/lib/exmm/emm.c b/src/lib/exmm/emm.c index d200aa95..059e8ad6 100644 --- a/src/lib/exmm/emm.c +++ b/src/lib/exmm/emm.c @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) printf("Map 1st 4 pages\n"); //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 + MapEMM(hEData, 0, 4); // load 1st 4 pages into page frame: 0-3 //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])) { - UnmapEMM(hEData, 0, EMMCoreLeft(/*4*/)); // should unmap before freeing - //printf("after EMS *pEmmData=%c\n", *pEmmData); - + UnmapEMM(hEData, 0, 4); // should unmap before freeing + //printf("after EMS *pEmmData=%c\n", *pEmmData); printf("Close emm\n"); EMMFree(hEData); // finished with the file data CloseEMM();