]> 4ch.mooo.com Git - 16.git/commitdiff
added memory images~
authorsparky4 <sparky4@cock.li>
Sat, 23 May 2015 21:39:06 +0000 (16:39 -0500)
committersparky4 <sparky4@cock.li>
Sat, 23 May 2015 21:39:06 +0000 (16:39 -0500)
new file:   doc/fig1-1_i.pcx
new file:   doc/fig1-1_i.png
new file:   doc/upmem.pcx
modified:   src/lib/exmm/emm.c

doc/fig1-1_i.pcx [new file with mode: 0644]
doc/fig1-1_i.png [new file with mode: 0644]
doc/upmem.pcx [new file with mode: 0644]
src/lib/exmm/emm.c

diff --git a/doc/fig1-1_i.pcx b/doc/fig1-1_i.pcx
new file mode 100644 (file)
index 0000000..0de1cbd
Binary files /dev/null and b/doc/fig1-1_i.pcx differ
diff --git a/doc/fig1-1_i.png b/doc/fig1-1_i.png
new file mode 100644 (file)
index 0000000..76eb39d
Binary files /dev/null and b/doc/fig1-1_i.png differ
diff --git a/doc/upmem.pcx b/doc/upmem.pcx
new file mode 100644 (file)
index 0000000..e3532d9
Binary files /dev/null and b/doc/upmem.pcx differ
index f50a91aa8773414c38c318e4bbc859edc4e84ecf..aed6c3b7477ddc8082c7a1d11c3f6653b88b8338 100644 (file)
@@ -19,7 +19,9 @@
 #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
@@ -71,7 +73,7 @@ int main(int argc, char *argv[])
 
 
        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));
@@ -123,7 +125,7 @@ int main(int argc, char *argv[])
        }*/
        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