]> 4ch.mooo.com Git - 16.git/commitdiff
added a far pointer tester~
authorsparky4 <sparky4@cock.li>
Fri, 22 May 2015 16:12:40 +0000 (11:12 -0500)
committersparky4 <sparky4@cock.li>
Fri, 22 May 2015 16:12:40 +0000 (11:12 -0500)
new file:   src/lib/exmm/far.c

src/lib/exmm/far.c [new file with mode: 0644]

diff --git a/src/lib/exmm/far.c b/src/lib/exmm/far.c
new file mode 100644 (file)
index 0000000..3c2c998
--- /dev/null
@@ -0,0 +1,11 @@
+#include<stdio.h>
+
+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