From: sparky4 Date: Fri, 22 May 2015 17:44:28 +0000 (-0500) Subject: far pointer test~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=f605c30caeea853f3dd5a6270ee45774052359c0;p=16.git far pointer test~ modified: src/lib/exmm/FAR.EXE modified: src/lib/exmm/far.c --- diff --git a/src/lib/exmm/FAR.EXE b/src/lib/exmm/FAR.EXE index 1791d184..fe57024b 100644 Binary files a/src/lib/exmm/FAR.EXE and b/src/lib/exmm/FAR.EXE differ diff --git a/src/lib/exmm/far.c b/src/lib/exmm/far.c index d56b0f06..7dcbba54 100644 --- a/src/lib/exmm/far.c +++ b/src/lib/exmm/far.c @@ -3,14 +3,14 @@ #include 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++;