X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ffmemtest.c;h=307a627180bee075870f87d8da7f2e51b4ad9cb1;hb=f47289f4c64b520e0aee7071b7875dc48203335c;hp=a62e26dc36c6ba3d6bfc3367c249f7b816e6fc7c;hpb=04d8b7df71125ee2ecd1c1607fed5262c6df5d0d;p=16.git diff --git a/src/fmemtest.c b/src/fmemtest.c index a62e26dc..307a6271 100644 --- a/src/fmemtest.c +++ b/src/fmemtest.c @@ -1,4 +1,26 @@ +/* Project 16 Source Code~ + * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ #include +#include "src/lib/types.h" void main(int argc, char *argv[]) @@ -6,6 +28,9 @@ main(int argc, char *argv[]) int x=420; int huge *ptr=&x; int *ptr0=&x; + void __based(__self) *pee; + void __near *npee; + //word csw=0,dsw=0,esw=0,ssw=0,ipw=0; //ptr=&x; printf("&main()=%Fp\n", *argv[0]); @@ -18,4 +43,20 @@ main(int argc, char *argv[]) printf("address of *ptr=%Fp\n", *ptr); printf("&x=%Fp\n", &x); printf("x=%d\n", x); + printf("\n"); + /*__asm + { + //lea csw,cs + //lds DS,dsw + //les ES,esw +// mov ss,ssw +// mov ip,ipw + }*/ + //printf("ip=%u\n", ipw); + //printf("ss=%u\n", ssw); + //printf("cs=%u\n", csw); + //printf("ds=%u\n", dsw); + //printf("es=%u\n", esw); + printf("pee=%Fp\n", pee); + printf("npee=%Fp\n", npee); }