From: sparky4 Date: Sun, 4 Sep 2016 04:54:41 +0000 (-0500) Subject: typedef void __based( void ) * memptr; X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=492a563a62e9a188442fe3a75b98731f221a9728;p=16.git typedef void __based( void ) * memptr; --- diff --git a/DEBUG.16W b/DEBUG.16W index 2d10cf20..f6b1b9da 100755 --- a/DEBUG.16W +++ b/DEBUG.16W @@ -1,16 +1,16 @@ -Seg:0 Size:7705 Owner:0x4558 +Seg:0 Size:7720 Owner:0x1234 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ 0 -Seg:1e19 Size:256 Owner:0x527c +Seg:1e28 Size:256 Owner:0x527c ++++_  -Seg:1f19 Size:273 Owner:0x92d4 -++++_ +Seg:1f28 Size:273 Owner:0x92d4 ++++++_  -Seg:24a8 Size:40 Owner:0x0 +Seg:24b7 Size:40 Owner:0x0 +_ 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -Seg:b4d0 Size:11056 Owner:0x0 +Seg:b4df Size:11041 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_  Seg:e000 Size:8191 Owner:0x0 diff --git a/HEAP.16W b/HEAP.16W index 5abdbe31..d402de2c 100755 --- a/HEAP.16W +++ b/HEAP.16W @@ -1,33 +1,33 @@ == default == - USED block at 24ca0016 of size 66 - FREE block at 24ca0058 of size 18 - USED block at 24ca006a of size 136 - USED block at 24ca00f2 of size 20 - FREE block at 24ca0106 of size 7926 + USED block at 24d90016 of size 66 + FREE block at 24d90058 of size 18 + USED block at 24d9006a of size 136 + USED block at 24d900f2 of size 20 + FREE block at 24d90106 of size 7926 OK - end of heap == near == - USED block at 14c99306 of size 12 - USED block at 14c99312 of size 328 - USED block at 14c9945a of size 52 - USED block at 14c9948e of size 20 - USED block at 14c994a2 of size 20 - USED block at 14c994b6 of size 20 - USED block at 14c994ca of size 20 - USED block at 14c994de of size 20 - USED block at 14c994f2 of size 27402 + USED block at 14d89306 of size 12 + USED block at 14d89312 of size 328 + USED block at 14d8945a of size 52 + USED block at 14d8948e of size 20 + USED block at 14d894a2 of size 20 + USED block at 14d894b6 of size 20 + USED block at 14d894ca of size 20 + USED block at 14d894de of size 20 + USED block at 14d894f2 of size 27402 OK - end of heap == far == - USED block at 24ca0016 of size 66 - USED block at 24ca0058 of size 18 - USED block at 24ca006a of size 136 - USED block at 24ca00f2 of size 20 - USED block at 24ca0106 of size 7926 + USED block at 24d90016 of size 66 + USED block at 24d90058 of size 18 + USED block at 24d9006a of size 136 + USED block at 24d900f2 of size 20 + USED block at 24d90106 of size 7926 OK - end of heap Memory Type Total Used Free diff --git a/MMDUMP.16W b/MMDUMP.16W index c9fa5426..94134b94 100755 Binary files a/MMDUMP.16W and b/MMDUMP.16W differ diff --git a/src/exmmtest.c b/src/exmmtest.c index 81945d6d..0cd83af0 100755 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -38,6 +38,26 @@ #define PRINTBB { printf("&main()= %Fp\n", argv[0]);printf("bigbuffer= %Fp\n", bigbuffer);printf("&bigbuffer= %Fp\n", &bigbuffer);printf("bigbuffer= %04x\n", bigbuffer);printf("&bigbuffer= %04x\n", &bigbuffer); } +#ifdef __WATCOMC__ +void segatesuto() +{ + __segment screen; + char __based( void ) * scrptr; + + screen = 0xB800; + scrptr = 0; + printf( "Top left character is '%c'.\n", *(screen:>scrptr) ); + printf("Next string is: ]"); + while(*scrptr<16) + { + printf( "%c", *(screen:>scrptr) ); + scrptr++; + + } + printf("]\n"); +} +#endif + void main(int argc, char *argv[]) { @@ -144,7 +164,8 @@ main(int argc, char *argv[]) printf("Total near free: %lu\n", (dword)(GetNearFreeSize())); printf("Total far free: %lu\n", (dword)(GetFarFreeSize())); heapdump(&gvar); - #endif + segatesuto(); +#endif printf("Project 16 emmtest.exe. This is just a test file!\n"); printf("version %s\n", VERSION); //printf("core left: %lu\n", (dword)_coreleft());