]> 4ch.mooo.com Git - 16.git/commitdiff
far pointer test~
authorsparky4 <sparky4@cock.li>
Fri, 22 May 2015 17:44:28 +0000 (12:44 -0500)
committersparky4 <sparky4@cock.li>
Fri, 22 May 2015 17:44:28 +0000 (12:44 -0500)
modified:   src/lib/exmm/FAR.EXE
modified:   src/lib/exmm/far.c

src/lib/exmm/FAR.EXE
src/lib/exmm/far.c

index 1791d18473414d70083b829eca657ec16d1681b0..fe57024bae7d8babac6051de2e73446a692d93a9 100644 (file)
Binary files a/src/lib/exmm/FAR.EXE and b/src/lib/exmm/FAR.EXE differ
index d56b0f0606436f995a381892df2e1819be896f05..7dcbba54b9449ba4cb02d07c56afe902d7a14acb 100644 (file)
@@ -3,14 +3,14 @@
 #include <limits.h>
 
 int main(){
-       unsigned short i=0;
+       unsigned long i=0;
        char near w;
-       char huge *p =(char far *)0xF0000000;
+       char huge *p =(char far *)0xD0000000;
        //char far *q =(char far *)0x53332225;
-       printf("1p=%p\n", p);
-       while(p<=0xFFFFFFFF/*0<=i<(_UI16_MAX)*/ && !kbhit())
+       printf("1p=%p   %ul\n", p, i);
+       while(p<=(char far *)0xDFFFFFFF/*i<262144UL*/ && !kbhit())
        {
-               printf("*p=%c   %ul\n",*p, i);
+               printf("p=%p=%x %ul\n", p, *p, i);
 //             *p = i;
 //             (*p)++;
                p++;