From: sparky4 Date: Thu, 23 Jul 2015 13:16:45 +0000 (-0500) Subject: fmemtest.exe hmmm X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=bb1d78da1d32cc8ef982123821fb95696510b934;p=16.git fmemtest.exe hmmm modified: 16.exe modified: 16.hed modified: DEBUG.16 modified: MMDUMP.16 modified: exmmtest.exe modified: fmemtest.exe modified: fontgfx.exe modified: fonttest.exe modified: inputest.exe modified: maptest.exe modified: palettec.exe modified: sountest.exe modified: src/fmemtest.c modified: src/lib/16_head.h modified: src/lib/16_mm.h modified: tsthimem.exe --- diff --git a/16.exe b/16.exe index 9ebcb317..1798b360 100644 Binary files a/16.exe and b/16.exe differ diff --git a/16.hed b/16.hed index 4c83af50..ab3e0297 100644 Binary files a/16.hed and b/16.hed differ diff --git a/DEBUG.16 b/DEBUG.16 index 2690aa29..ee53cffd 100644 --- a/DEBUG.16 +++ b/DEBUG.16 @@ -1,16 +1,16 @@ -Seg:0 Size:6828 Owner:0x1674 -Seg:1ba5 Size:1 Owner:0x46c7 -Seg:1ba6 Size:256 Owner:0xc25c -Seg:1f4b Size:45238 Owner:0x90c3 -Seg:d022 Size:4294967263 Owner:0x91e8 -Seg:d022 Size:4294967263 Owner:0x8b04 -Seg:d022 Size:4294967263 Owner:0x26b8 -Seg:d022 Size:4294967263 Owner:0xf04e -Seg:d022 Size:4294967263 Owner:0x7f94 -Seg:d022 Size:4294967263 Owner:0xc01b -Seg:d022 Size:4294967263 Owner:0x1a2 -Seg:d022 Size:4294967263 Owner:0x9005 -Seg:d022 Size:4294967263 Owner:0x3350 -Seg:d022 Size:4294967263 Owner:0x2b8 -Seg:d022 Size:419 Owner:0x2eb8 -Seg:e000 Size:4294909951 Owner:0xc02b +Seg:0 Size:6749 Owner:0x1 +Seg:1b56 Size:1 Owner:0x86f6 +Seg:1b57 Size:256 Owner:0xc25c +Seg:1efc Size:45317 Owner:0xbc93 +Seg:d01f Size:4294967266 Owner:0x869a +Seg:d01f Size:4294967266 Owner:0x70bc +Seg:d01f Size:4294967266 Owner:0xb868 +Seg:d01f Size:4294967266 Owner:0xa650 +Seg:d01f Size:4294967266 Owner:0x8d00 +Seg:d01f Size:4294967266 Owner:0x8689 +Seg:d01f Size:4294967266 Owner:0x8689 +Seg:d01f Size:4294967266 Owner:0xf13e +Seg:d01f Size:4294967266 Owner:0x8336 +Seg:d01f Size:4294967266 Owner:0x8d50 +Seg:d01f Size:467 Owner:0x70bc +Seg:e000 Size:4294909951 Owner:0xff11 diff --git a/MMDUMP.16 b/MMDUMP.16 index b1fad0ad..fb143562 100644 Binary files a/MMDUMP.16 and b/MMDUMP.16 differ diff --git a/exmmtest.exe b/exmmtest.exe index 0f8110cd..824d312f 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/fmemtest.exe b/fmemtest.exe index 39ee9b81..05eaa8a8 100644 Binary files a/fmemtest.exe and b/fmemtest.exe differ diff --git a/fontgfx.exe b/fontgfx.exe index 58132548..95023801 100644 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/fonttest.exe b/fonttest.exe index f812b28b..474ba8a4 100644 Binary files a/fonttest.exe and b/fonttest.exe differ diff --git a/inputest.exe b/inputest.exe index 842c7b7d..6168822c 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/maptest.exe b/maptest.exe index 11ee1cb2..33739243 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/palettec.exe b/palettec.exe index 1cb67ec6..0066ab52 100644 Binary files a/palettec.exe and b/palettec.exe differ diff --git a/sountest.exe b/sountest.exe index 04c88cd2..69b1620e 100644 Binary files a/sountest.exe and b/sountest.exe differ diff --git a/src/fmemtest.c b/src/fmemtest.c index da102342..af61ffe2 100644 --- a/src/fmemtest.c +++ b/src/fmemtest.c @@ -33,6 +33,8 @@ main(int argc, char *argv[]) int *ptr0=&x; void __based(__self) *pee; void __near *npee; + memptr bigbuffer; + __segment segu; //word csw=0,dsw=0,esw=0,ssw=0,ipw=0; //ptr=&x; @@ -60,6 +62,8 @@ main(int argc, char *argv[]) //printf("cs=%u\n", csw); //printf("ds=%u\n", dsw); //printf("es=%u\n", esw); + printf("size of big buffer~=%u\n", _bmsize(segu, bigbuffer)); + printf("size of pee~=%u\n", _bmsize(segu, pee)); printf("pee=%Fp\n", pee); printf("npee=%Fp\n", npee); printf("&main()=%Fp\n", *argv[0]); diff --git a/src/lib/16_head.h b/src/lib/16_head.h index da071b73..ee6ebf5f 100644 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -150,6 +150,9 @@ extern int profilehandle,debughandle; typedef union REGPACK regs_t; typedef enum {false,true} boolean; +//I hope this is correct! +//__self +typedef void __based(__self) * memptr; /* local function */ void wait(clock_t wait); diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 9daee338..0b562da7 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -84,11 +84,6 @@ #define XMS_FREEUMB 0x11 //========================================================================== -//I hope this is correct! -// void __segment(void)* memptr; -//__segment sega; -//__self -typedef void __based(__self) * memptr; typedef struct { diff --git a/tsthimem.exe b/tsthimem.exe index 465bcca1..8fe053e6 100644 Binary files a/tsthimem.exe and b/tsthimem.exe differ