From a03551050c18f4034f7452bc73791163d3bed508 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 22 May 2015 15:20:09 -0500 Subject: [PATCH] wwww ems test~ modified: src/lib/exmm/EMM.EXE modified: src/lib/exmm/emm.c --- src/lib/exmm/EMM.EXE | Bin 20016 -> 20016 bytes src/lib/exmm/emm.c | 19 ++++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/lib/exmm/EMM.EXE b/src/lib/exmm/EMM.EXE index 1c55c91674b8211bd5a3c08c8bd7067d728ecf1a..407ed3fa4863a19be9c90aa367418c54371966d5 100644 GIT binary patch delta 23 acmdlmhj9ZCr86@MY|dcj1yN;eyW9a^2M09( delta 23 acmdlmhj9ZCr86_KY|dcj1yN;eyW9a@BL^J- diff --git a/src/lib/exmm/emm.c b/src/lib/exmm/emm.c index a2080991..eeee320a 100644 --- a/src/lib/exmm/emm.c +++ b/src/lib/exmm/emm.c @@ -71,10 +71,11 @@ 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, 16); // load 1st 4 pages into page frame: 0-3 //memset(pEmmData, 0x0e, 64000u); //0000 printf("(advi*EMMPAGESIZE)=%lu\n", advi); memset(pEmmData, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE)); + memset(pEmmData+0x10000, atoi(argv[1]), 0xffff);//sizeof(atoi(argv[1])));//((EMMCoreLeft())*EMMPAGESIZE)); //---- UnmapEMM(hEData, 0, 4); // not absolutely necessary // printf("*pEmmData=%c\n", *pEmmData); printf("%p= %c %c %c %c %c %c %c %c\n", pEmmData, @@ -110,6 +111,18 @@ int main(int argc, char *argv[]) { 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++; @@ -117,9 +130,9 @@ int main(int argc, char *argv[]) } //free(p); } - if(!atoi(argv[3])) + if(!atoi(argv[4])) { - UnmapEMM(hEData, 0, 4); // should unmap before freeing + UnmapEMM(hEData, 0, 16); // should unmap before freeing //printf("after EMS *pEmmData=%c\n", *pEmmData); printf("Close emm\n"); EMMFree(hEData); // finished with the file data -- 2.39.5