From f605c30caeea853f3dd5a6270ee45774052359c0 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 22 May 2015 12:44:28 -0500 Subject: [PATCH] far pointer test~ modified: src/lib/exmm/FAR.EXE modified: src/lib/exmm/far.c --- src/lib/exmm/FAR.EXE | Bin 15336 -> 15392 bytes src/lib/exmm/far.c | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/exmm/FAR.EXE b/src/lib/exmm/FAR.EXE index 1791d18473414d70083b829eca657ec16d1681b0..fe57024bae7d8babac6051de2e73446a692d93a9 100644 GIT binary patch delta 5880 zcmZu#3tW>|mcQT4i|28Y$FJW6y(uT1bjm6M}w9H4H4O7&;6pU-QS@9B;UQ~ zp2t1s+;i?HmL7VwZ0%MpN_hj?jA?g6H7h$Ji?CfS+0zyBF{{U>_hI zBXkr{D?{i8Kr2V+Gobwvuuy@J8*oX9&`cFV^8t?lJ_eisYz{$a2VidqDnr%qBQ6w# zMj|wjh|r5k2>k`H12nJ#$^icYcpvZ^VEzw)ZumW4htOKU7Cct4XPzE1$ z0JH?57{DWdYEa}o_&x@}OA(3&Bmgo1D*;;o&j88+p8=Wx7XXt0c@9FcfNa3SfE|Dr z0s8?pfYX3}z)t}7SH?b^vk`9;kE2Z+HkykzlkY1><%R&+J8kefQ719^i;4=1)Id}S zRNtV=lM$Z#0@mpwd$GS-o;_TsF{_+-Hh7uPwq*|JgF&kT4naWEt7ru%3f3&V(ZLTHX{p8Y2&v# z#}ViS;`3#jEKfbXOS|4mPvhD5hjAP0tumY04^t~-z*u5Cd3JK3@+^`yR(2ubtmYW7 zJzLFxi&A=qWIb)>q7A~haP#M3`iImxYDsjZu^$3O?&MJ0k??k1_Ap&4vp))}Pq+qU zm5ov5Lt}cP=|y^*rW45qgCq7XVF*V1kkHfhWALB8-1rSbB?SVHkS#dz!}thdrtihH8RINRyJZIf>*+-N&vzfhlo=?jYF+&TCdMn_h)>$WhZ`^$}| zU>hR~54EBrX-(?W2qp@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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++; -- 2.39.5