-\e[0mSeg:0 Size:7705 Owner:0x4558\r
+\e[0mSeg:0 Size:7720 Owner:0x1234\r
\e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
\e[42;32m0\r
-\e[0m\e[0mSeg:1e19 Size:256 Owner:0x527c\r
+\e[0m\e[0mSeg:1e28 Size:256 Owner:0x527c\r
\e[44;34m++++\e[0m\e[47;37m_\e[0m\r
\e[42;32m\r
-\e[0m\e[0mSeg:1f19 Size:273 Owner:0x92d4\r
-\e[44;34m++++\e[0m\e[47;37m_\e[0m\r
+\e[0m\e[0mSeg:1f28 Size:273 Owner:0x92d4\r
+\e[44;34m+++++\e[0m\e[47;37m_\e[0m\r
\e[42;32m\r
-\e[0m\e[0mSeg:24a8 Size:40 Owner:0x0\r
+\e[0m\e[0mSeg:24b7 Size:40 Owner:0x0\r
\e[41;31m+\e[0m\e[47;37m_\e[0m\r
\e[42;32m000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
-\e[0m\e[0mSeg:b4d0 Size:11056 Owner:0x0\r
+\e[0m\e[0mSeg:b4df Size:11041 Owner:0x0\r
\e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
\e[42;32m\r
\e[0m\e[0mSeg:e000 Size:8191 Owner:0x0\r
\r
== default ==\r
\r
- USED block at 24ca0016 of size 66\r
- FREE block at 24ca0058 of size 18\r
- USED block at 24ca006a of size 136\r
- USED block at 24ca00f2 of size 20\r
- FREE block at 24ca0106 of size 7926\r
+ USED block at 24d90016 of size 66\r
+ FREE block at 24d90058 of size 18\r
+ USED block at 24d9006a of size 136\r
+ USED block at 24d900f2 of size 20\r
+ FREE block at 24d90106 of size 7926\r
OK - end of heap\r
\r
== near ==\r
\r
- USED block at 14c99306 of size 12\r
- USED block at 14c99312 of size 328\r
- USED block at 14c9945a of size 52\r
- USED block at 14c9948e of size 20\r
- USED block at 14c994a2 of size 20\r
- USED block at 14c994b6 of size 20\r
- USED block at 14c994ca of size 20\r
- USED block at 14c994de of size 20\r
- USED block at 14c994f2 of size 27402\r
+ USED block at 14d89306 of size 12\r
+ USED block at 14d89312 of size 328\r
+ USED block at 14d8945a of size 52\r
+ USED block at 14d8948e of size 20\r
+ USED block at 14d894a2 of size 20\r
+ USED block at 14d894b6 of size 20\r
+ USED block at 14d894ca of size 20\r
+ USED block at 14d894de of size 20\r
+ USED block at 14d894f2 of size 27402\r
OK - end of heap\r
\r
== far ==\r
\r
- USED block at 24ca0016 of size 66\r
- USED block at 24ca0058 of size 18\r
- USED block at 24ca006a of size 136\r
- USED block at 24ca00f2 of size 20\r
- USED block at 24ca0106 of size 7926\r
+ USED block at 24d90016 of size 66\r
+ USED block at 24d90058 of size 18\r
+ USED block at 24d9006a of size 136\r
+ USED block at 24d900f2 of size 20\r
+ USED block at 24d90106 of size 7926\r
OK - end of heap\r
\r
Memory Type Total Used Free\r
\r
#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); }\r
\r
+#ifdef __WATCOMC__\r
+void segatesuto()\r
+{\r
+ __segment screen;\r
+ char __based( void ) * scrptr;\r
+\r
+ screen = 0xB800;\r
+ scrptr = 0;\r
+ printf( "Top left character is '%c'.\n", *(screen:>scrptr) );\r
+ printf("Next string is: ]");\r
+ while(*scrptr<16)\r
+ {\r
+ printf( "%c", *(screen:>scrptr) );\r
+ scrptr++;\r
+\r
+ }\r
+ printf("]\n");\r
+}\r
+#endif\r
+\r
void\r
main(int argc, char *argv[])\r
{\r
printf("Total near free: %lu\n", (dword)(GetNearFreeSize()));\r
printf("Total far free: %lu\n", (dword)(GetFarFreeSize()));\r
heapdump(&gvar);\r
- #endif\r
+ segatesuto();\r
+#endif\r
printf("Project 16 emmtest.exe. This is just a test file!\n");\r
printf("version %s\n", VERSION);\r
//printf("core left: %lu\n", (dword)_coreleft());\r