From 19b04b8b3e662ccc059449f62ea50baca79dff83 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 13 May 2016 10:43:39 -0500 Subject: [PATCH] looking at tesuto now~ --- src/test0.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) 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); } -- 2.39.5