From: sparky4 Date: Fri, 15 May 2015 23:29:06 +0000 (-0500) Subject: hmmm wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1ced309b058ebabb4f9ce5fa13f4926411d39fd1;p=16.git hmmm wwww 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 139f1b03..a2a6ff90 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 e3dcaa2a..4345511e 100644 --- a/src/lib/exmm/emm.c +++ b/src/lib/exmm/emm.c @@ -32,7 +32,7 @@ void TransformData(char *pEmmData, unsigned int len) } } -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { byte *pEmmData; int hEData; @@ -64,17 +64,17 @@ void main(int argc, char *argv[]) printf("EMS pages available are %lu\n", EMMCoreLeft()); printf("Map 1st 4 pages\n"); - MapEMM(hEData, 0, EMMCoreLeft(/*4*/)-2); // load 1st 4 pages into page frame: 0-3 + MapEMM(hEData, 0, EMMCoreLeft(/*4*/)); // load 1st 4 pages into page frame: 0-3 //memset(pEmmData, 0x0e, 64000u); - memset(pEmmData, atoi(argv[1]), 64000u); + memset(pEmmData, atoi(argv[1]), ((EMMCoreLeft())*EMMPAGESIZE)); //---- UnmapEMM(hEData, 0, 4); // not absolutely necessary printf("*pEmmData=%c\n", *pEmmData); - printf("Map next 2 pages\n"); - MapEMM(hEData, EMMCoreLeft(/*4*/)-2, EMMCoreLeft(/*2*/)); // map last 2 pages: 4-5 - memset(pEmmData, 0x0e, 32768u); + //printf("Map next 2 pages\n"); + //MapEMM(hEData, EMMCoreLeft(/*4*/)-3, EMMCoreLeft(/*2*/)-1); // map last 2 pages: 4-5 + //memset(pEmmData, 0x04, 32768u); // memset(pEmmData, atoi(argv[0]), 32768u); - printf("*pEmmData=%c\n", *pEmmData); + //printf("*pEmmData=%c\n", *pEmmData); // printf("*pEmmData++=%c\n", *(pEmmData++)); /*MapEMM(hEData0, 0, 1); @@ -100,4 +100,6 @@ void main(int argc, char *argv[]) CloseEMM(); printf("after EMS *pEmmData=%x\n", *pEmmData); printf("EMS pages available are %lu\n", EMMCoreLeft()); + printf("EMMPAGESIZE=%d\n", EMMPAGESIZE); + return 0; }