From: sparky4 Date: Fri, 22 May 2015 17:01:10 +0000 (-0500) Subject: testing far stuff wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=0ba797bc23c1f81dde8c3959d7b7456bcb737503;p=16.git testing far stuff wwww new file: src/lib/exmm/FAR.EXE new file: src/lib/exmm/f.bat modified: src/lib/exmm/far.c --- diff --git a/src/lib/exmm/FAR.EXE b/src/lib/exmm/FAR.EXE new file mode 100644 index 00000000..1791d184 Binary files /dev/null and b/src/lib/exmm/FAR.EXE differ diff --git a/src/lib/exmm/f.bat b/src/lib/exmm/f.bat new file mode 100644 index 00000000..3b6acd04 --- /dev/null +++ b/src/lib/exmm/f.bat @@ -0,0 +1,3 @@ +wcp -mh far.c +pause +far.exe diff --git a/src/lib/exmm/far.c b/src/lib/exmm/far.c index 3c2c9985..d56b0f06 100644 --- a/src/lib/exmm/far.c +++ b/src/lib/exmm/far.c @@ -1,11 +1,34 @@ #include +#include +#include int main(){ - char far *p =(char far *)0x55550005; - char far *q =(char far *)0x53332225; - *p = 80; - (*p)++; - printf("%d",*q); - printf("%d",*p); + unsigned short i=0; + char near w; + char huge *p =(char far *)0xF0000000; + //char far *q =(char far *)0x53332225; + printf("1p=%p\n", p); + while(p<=0xFFFFFFFF/*0<=i<(_UI16_MAX)*/ && !kbhit()) + { + printf("*p=%c %ul\n",*p, i); +// *p = i; +// (*p)++; + p++; + i++; + } + /*while((_UI16_MAX/2)<=i<(_UI16_MAX) && !kbhit()) + { + printf("*p=%d %d\n",*p, i); + /p = i; + //(*p)++; + p++; + i++; + }*/ + w=104; + //printf("*q=%d\n",*q); + //printf(" q=%p\n", q); + printf(" p=%p\n", p); + printf(" w=%d\n", w); + printf(" w=%p\n", w); return 0; -} \ No newline at end of file +}