#include <mem.h>\r
#include <conio.h>
\r
-#include "memory.h"\r
+#include "memory.h"
+
+#define PEMMDATAPAGENUM 4\r
\r
void TransformData(char *pEmmData, unsigned int len)\r
{\r
printf("Map 1st 4 pages\n");\r
- MapEMM(hEData, 0, 4); // load 1st 4 pages into page frame: 0-3\r
+ MapEMM(hEData, 0, PEMMDATAPAGENUM); // 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));
}*/
if(!atoi(argv[3]))
{\r
- UnmapEMM(hEData, 0, 4); // should unmap before freeing
+ UnmapEMM(hEData, 0, PEMMDATAPAGENUM); // 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