-\r
- UnmapEMM(hEData, 0, EMMCoreLeft(/*4*/)); // should unmap before freeing
- //UnmapEMM(hEData0, 0, 1); // should unmap before freeing\r
- //printf("after EMS *pEmmData=%c\n", *pEmmData);
-\r
- printf("Close emm\n");\r
- EMMFree(hEData); // finished with the file data\r
- CloseEMM();
- printf("after EMS *pEmmData=%x\n", *pEmmData);
+ if(atoi(argv[2]))
+ {
+ while(p<(char huge *)((GetEMMSeg0()*0x10000)+0xffff) && !kbhit())
+ {
+ if((i%16)==0) printf("%p= %c %c %c %c %c %c %c %c %c %c %c %c %c %c %c %c\n", p,
+*p, *(p+1), *(p+2), *(p+3), *(p+4), *(p+5), *(p+6), *(p+7),
+*(p+8), *(p+9), *(p+10), *(p+11), *(p+12), *(p+13), *(p+14), *(p+15));
+ // (*p)++;
+ i++;
+ p++;
+ }
+ }
+ /*if(atoi(argv[3]))
+ p =(char huge *)(GetEMMSeg0()*0x20000);
+ while(p<(char huge *)((GetEMMSeg0()*0x20000)+0xffff) && !kbhit())
+ {
+ if((i%16)==0) printf("%p= %c %c %c %c %c %c %c %c %c %c %c %c %c %c %c %c\n", p,
+*p, *(p+1), *(p+2), *(p+3), *(p+4), *(p+5), *(p+6), *(p+7),
+*(p+8), *(p+9), *(p+10), *(p+11), *(p+12), *(p+13), *(p+14), *(p+15));
+ // (*p)++;
+ i++;
+ p++;
+ }
+ //free(p);
+ }*/
+ if(!atoi(argv[3]))
+ {\r
+ 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
+ CloseEMM();
+ }
+ printf("after EMS pEmmData=%p\n", pEmmData);