From: sparky4 Date: Fri, 13 May 2016 15:43:39 +0000 (-0500) Subject: looking at tesuto now~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=19b04b8b3e662ccc059449f62ea50baca79dff83;p=16.git looking at tesuto now~ --- diff --git a/src/test0.c b/src/test0.c index f5eb99b9..802f328e 100755 --- a/src/test0.c +++ b/src/test0.c @@ -1,14 +1,37 @@ #include #include -void main() +void baka(unsigned far *z) { unsigned w; - unsigned far *z; // w = _nmalloc(sizeof(unsigned)); z=(&w); for(w=0; w<16;w++) { printf("z=(%Fp)%u w=(%Fp)%u\n", z, *z, &w, w); } + printf("\n"); +} + +void pee(unsigned far *z) +{ + unsigned near *w; + w = _nmalloc(sizeof(unsigned)); + z=(w); + for((*w)=0;(*w)<16;(*w)++) + { + printf("z=(%Fp)%u w=(%Fp)%u\n", z, *z, w, *w); + } + printf("\n"); +} + +void main() +{ + unsigned near w; + unsigned far *z; + baka(z); + pee(z); + printf("&w=%Fp\n", &w); + printf("z=%Fp\n", z); + printf("*z=%Fp\n", *z); }