From: sparky4 Date: Fri, 22 May 2015 16:12:40 +0000 (-0500) Subject: added a far pointer tester~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=de3764d30a1e167ff85e01c176dc357cbe95a64e;p=16.git added a far pointer tester~ new file: src/lib/exmm/far.c --- diff --git a/src/lib/exmm/far.c b/src/lib/exmm/far.c new file mode 100644 index 00000000..3c2c9985 --- /dev/null +++ b/src/lib/exmm/far.c @@ -0,0 +1,11 @@ +#include + +int main(){ + char far *p =(char far *)0x55550005; + char far *q =(char far *)0x53332225; + *p = 80; + (*p)++; + printf("%d",*q); + printf("%d",*p); + return 0; +} \ No newline at end of file