]> 4ch.mooo.com Git - 16.git/commitdiff
testing far stuff wwww
authorsparky4 <sparky4@cock.li>
Fri, 22 May 2015 17:01:10 +0000 (12:01 -0500)
committersparky4 <sparky4@cock.li>
Fri, 22 May 2015 17:01:10 +0000 (12:01 -0500)
new file:   src/lib/exmm/FAR.EXE
new file:   src/lib/exmm/f.bat
modified:   src/lib/exmm/far.c

src/lib/exmm/FAR.EXE [new file with mode: 0644]
src/lib/exmm/f.bat [new file with mode: 0644]
src/lib/exmm/far.c

diff --git a/src/lib/exmm/FAR.EXE b/src/lib/exmm/FAR.EXE
new file mode 100644 (file)
index 0000000..1791d18
Binary files /dev/null and b/src/lib/exmm/FAR.EXE differ
diff --git a/src/lib/exmm/f.bat b/src/lib/exmm/f.bat
new file mode 100644 (file)
index 0000000..3b6acd0
--- /dev/null
@@ -0,0 +1,3 @@
+wcp -mh far.c
+pause\r
+far.exe\r
index 3c2c99856b18827bad7cb42f4515614866a2d65d..d56b0f0606436f995a381892df2e1819be896f05 100644 (file)
@@ -1,11 +1,34 @@
 #include<stdio.h>
+#include <conio.h>
+#include <limits.h>
 
 int main(){
-       char far *p =(char far *)0x55550005;
-       char far *q =(char far *)0x53332225;
-       *p = 80;
-       (*p)++;
-       printf("%d",*q);
-       printf("%d",*p);
+       unsigned short i=0;
+       char near w;
+       char huge *p =(char far *)0xF0000000;
+       //char far *q =(char far *)0x53332225;
+       printf("1p=%p\n", p);
+       while(p<=0xFFFFFFFF/*0<=i<(_UI16_MAX)*/ && !kbhit())
+       {
+               printf("*p=%c   %ul\n",*p, i);
+//             *p = i;
+//             (*p)++;
+               p++;
+               i++;
+       }
+       /*while((_UI16_MAX/2)<=i<(_UI16_MAX) && !kbhit())
+       {
+               printf("*p=%d   %d\n",*p, i);
+               /p = i;
+               //(*p)++;
+               p++;
+               i++;
+       }*/
+       w=104;
+       //printf("*q=%d\n",*q);
+       //printf(" q=%p\n", q);
+       printf(" p=%p\n", p);
+       printf(" w=%d\n", w);
+       printf(" w=%p\n", w);
        return 0;
-}
\ No newline at end of file
+}