+++ /dev/null
-==This is the results of borland c's segment pointers==\r
-These are the various memory models of the 8088 that are demonstrated here!\r
-==tiny==\r
-local variable bee= 16B8:FFF4\r
-local variable bee= FFF4\r
-far pointer value of pee= 16B8:16B8\r
-pointer value of pee= 16B8\r
-==small==\r
-local variable bee= 0130:FFF4\r
-local variable bee= FFF4\r
-far pointer value of pee= 0130:0130\r
-pointer value of pee= 0130\r
-==medium==\r
-local variable bee= 0340:FFF2\r
-local variable bee= FFF2\r
-far pointer value of pee= 0340:0340\r
-pointer value of pee= 0340\r
-==compact is what project 16 uses==\r
-local variable bee= 0524:1000\r
-local variable bee= 0524:1000\r
-far pointer value of pee= 011E:011E\r
-pointer value of pee= 011E:011E\r
-==large==\r
-local variable bee= 0530:0FFE\r
-local variable bee= 0530:0FFE\r
-far pointer value of pee= 0340:0340\r
-pointer value of pee= 0340:0340\r
-==HUGE GUTS!==\r
-local variable bee= 054F:0FFE\r
-local variable bee= 054F:0FFE\r
-far pointer value of pee= 0510:0134\r
-pointer value of pee= 0510:0134\r
+++ /dev/null
-==This is the results of open watcom's base pointers==\r
-These are the various memory models of the 8088 that are demonstrated here!\r
-==tiny is not found so default==\r
-local variable bee= 0000:0bc6\r
-local variable bee= 0bc6\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000\r
-==small==\r
-local variable bee= 0000:0bc6\r
-local variable bee= 0bc6\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000\r
-==medium==\r
-local variable bee= 0000:0bce\r
-local variable bee= 0bce\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000\r
-==compact is what project 16 uses==\r
-local variable bee= 05d4:0c32\r
-local variable bee= 05d4:0c32\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000:0000\r
-==large==\r
-local variable bee= 05e1:0c3a\r
-local variable bee= 05e1:0c3a\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000:0000\r
-==HUGE GUTS!==\r
-local variable bee= 06af:0c0a\r
-local variable bee= 06af:0c0a\r
-far pointer value of pee= 0000:0000\r
-pointer value of pee= 0000:0000\r
+++ /dev/null
-@echo off\r
-echo ==This is the results of borland c's segment pointers== > bpee\r
-echo These are the various memory models of the 8088 that are demonstrated here! >> bpee\r
-@del pee.obj\r
-echo ==tiny== >> bpee\r
-bcc -mt pee.c\r
-pee.exe >> bpee\r
-echo ==small== >> bpee\r
-bcc -ms pee.c\r
-pee.exe >> bpee\r
-echo ==medium== >> bpee\r
-bcc -mm pee.c\r
-pee.exe >> bpee\r
-echo ==compact is what project 16 uses== >> bpee\r
-bcc -mc pee.c\r
-pee.exe >> bpee\r
-echo ==large== >> bpee\r
-bcc -ml pee.c\r
-pee.exe >> bpee\r
-echo ==HUGE GUTS!== >> bpee\r
-bcc -mh pee.c\r
-pee.exe >> bpee
\ No newline at end of file
+++ /dev/null
-/* 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 <http://www.gnu.org/licenses/>, or
- * write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
-/*
- Segment experiment!
-*/
-#include <stdio.h>
-#include <malloc.h>
-#ifdef __WATCOMC__
-typedef void __based(__self) * memptr;
-//typedef __segment memptr;
-#endif
-#ifdef __BORLANDC__
-typedef void _seg * memptr;
-#endif
-
-void
-main(int argc, char *argv[])
-{
- __segment segu;
- unsigned bee=0;
-#ifdef __WATCOMC__
- void __based(segu)* pee;
-#endif
-#ifdef __BORLANDC__
- memptr pee;
-#endif
- argc=argc;
- printf("local variable bee= %Fp\n", &bee);
- printf("local variable bee= %p\n", &bee);
- printf("far pointer value of pee= %Fp\n", pee);
- printf("pointer value of pee= %p\n", pee);
-}
+++ /dev/null
-@echo off\r
-echo ==This is the results of open watcom's base pointers== > wpee\r
-echo These are the various memory models of the 8088 that are demonstrated here! >> wpee\r
-@del pee.obj\r
-echo ==tiny is not found so default== >> wpee\r
-wcl -l=dos -0 pee.c\r
-pee.exe >> wpee\r
-echo ==small== >> wpee\r
-wcl -l=dos -0 -ms pee.c\r
-pee.exe >> wpee\r
-echo ==medium== >> wpee\r
-wcl -l=dos -0 -mm pee.c\r
-pee.exe >> wpee\r
-echo ==compact is what project 16 uses== >> wpee\r
-wcl -l=dos -0 -mc pee.c\r
-pee.exe >> wpee\r
-echo ==large== >> wpee\r
-wcl -l=dos -0 -ml pee.c\r
-pee.exe >> wpee\r
-echo ==HUGE GUTS!== >> wpee\r
-wcl -l=dos -0 -mh pee.c\r
-pee.exe >> wpee
\ No newline at end of file
+++ /dev/null
-0 Size:5562 Owner:0x0\r
-0 Size:5562 Owner:0x0\r
-15ba Size:256 Owner:0x4cde\r
-Seg:16ba Size:273 Owner:0x857a\r
-Seg:1d08 Size:49 Owner:0x0\r
-Seg:1d08 Size:49 Owner:0x0\r
-ad39 Size:12999 Owner:0x0\r
-Seg:e000 Size:4294909951 Owner:0x0\r
+++ /dev/null
-\r
- == default ==\r
-\r
- USED block at 1d2a0016 of size 136\r
- USED block at 1d2a009e of size 66\r
- FREE block at 1d2a00e0 of size 18\r
- USED block at 1d2a00f2 of size 20\r
- FREE block at 1d2a0106 of size 7926\r
-OK - end of heap\r
-\r
- == near ==\r
-\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
-OK - end of heap\r
-\r
- == far ==\r
-\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
- USED block at 0 of size 0\r
-OK - end of heap\r
-\r
-Memory Type Total Used Free\r
----------------- -------- -------- --------\r
-Default 8166 222 7944\r
-Near 31318 862 30456\r
-Far 8166 222 7944\r
----------------- -------- -------- --------\r
-coreleft = 30454\r
-farcoreleft = 38202\r
-GetFreeSize = 7768\r
-GetNearFreeSize = 30456\r
-GetFarFreeSize = 7768\r
-memavl = 30454\r
-stackavail = 17129\r