From de3764d30a1e167ff85e01c176dc357cbe95a64e Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 22 May 2015 11:12:40 -0500 Subject: [PATCH] added a far pointer tester~ new file: src/lib/exmm/far.c --- src/lib/exmm/far.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 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 -- 2.39.5