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));
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();