From: sparky4 Date: Thu, 23 Jul 2015 17:58:43 +0000 (-0500) Subject: made it more documented the segment experiment X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=fa85d01ecbf4e2da3ac192e1a24fef61ef0cf105;p=16.git made it more documented the segment experiment modified: 16/segm/BPEE modified: 16/segm/PEE.EXE modified: 16/segm/WPEE modified: 16/segm/b.bat modified: 16/segm/pee.c modified: 16/segm/w.bat --- diff --git a/16/segm/BPEE b/16/segm/BPEE index 6bcc9bb0..49232ca2 100644 --- a/16/segm/BPEE +++ b/16/segm/BPEE @@ -1,35 +1,32 @@ -bee=18DC:FFF4 -pee=18DC:18DC -pee=18DC -pee=18dc -pee=6364 -"====" -bee=0354:FFF4 -pee=0354:0354 -pee=0354 -pee=354 -pee=852 -"====" -bee=035A:FFF2 -pee=035A:035A -pee=035A -pee=35a -pee=858 -"====" -bee=051E:1000 -pee=0388:0388 -pee=0388:0388 -pee=388 -pee=904 -"====" -bee=052B:0FFE -pee=038E:038E -pee=038E:038E -pee=38e -pee=910 -"====" -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==This is the results of borland c's segment pointers== +These are the various memory models of the 8088 that are demonstrated here! +==tiny== +local variable bee=18E4:FFF4 +pee=18E4:18E4 +pee=18E4 +pee=18e4 +==small== +local variable bee=035C:FFF4 +pee=035C:035C +pee=035C +pee=35c +==medium== +local variable bee=0362:FFF2 +pee=0362:0362 +pee=0362 +pee=362 +==compact is what project 16 uses== +local variable bee=051E:1000 +pee=0390:0390 +pee=0390:0390 +pee=390 +==large== +local variable bee=052A:0FFE +pee=0396:0396 +pee=0396:0396 +pee=396 +==HUGE GUTS!== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 diff --git a/16/segm/PEE.EXE b/16/segm/PEE.EXE index 77c43a65..bf43da3f 100644 Binary files a/16/segm/PEE.EXE and b/16/segm/PEE.EXE differ diff --git a/16/segm/WPEE b/16/segm/WPEE index 27374aa1..fa3d8e06 100644 --- a/16/segm/WPEE +++ b/16/segm/WPEE @@ -1,35 +1,32 @@ -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==This is the results of open watcom's base pointers== +These are the various memory models of the 8088 that are demonstrated here! +==tiny is not found so default== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 -"====" -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==small== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 -"====" -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==medium== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 -"====" -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==compact is what project 16 uses== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 -"====" -bee=054A:0FFE -pee=050B:03E2 -pee=050B:03E2 +==large== +local variable bee=054B:0FFE +pee=050C:03E2 +pee=050C:03E2 pee=3e2 -pee=994 -"====" -bee=06af:0bcc -pee=06af:0000 -pee=06af:0000 -pee=0 +==HUGE GUTS!== +local variable bee=06ae:0bcc +pee=06ae:0000 +pee=06ae:0000 pee=0 diff --git a/16/segm/b.bat b/16/segm/b.bat index e99229cc..f8ecdb1b 100644 --- a/16/segm/b.bat +++ b/16/segm/b.bat @@ -1,18 +1,21 @@ @echo off +echo ==This is the results of borland c's segment pointers== > bpee +echo These are the various memory models of the 8088 that are demonstrated here! >> bpee +echo ==tiny== >> bpee bcc -mt pee.c -pee.exe > bpee -echo "====" >> bpee +pee.exe >> bpee +echo ==small== >> bpee bcc -ms pee.c pee.exe >> bpee -echo "====" >> bpee +echo ==medium== >> bpee bcc -mm pee.c pee.exe >> bpee -echo "====" >> bpee +echo ==compact is what project 16 uses== >> bpee bcc -mc pee.c pee.exe >> bpee -echo "====" >> bpee +echo ==large== >> bpee bcc -ml pee.c pee.exe >> bpee -echo "====" >> bpee +echo ==HUGE GUTS!== >> bpee bcc -mh pee.c pee.exe >> bpee \ No newline at end of file diff --git a/16/segm/pee.c b/16/segm/pee.c index d8519df9..8a042827 100644 --- a/16/segm/pee.c +++ b/16/segm/pee.c @@ -33,11 +33,10 @@ typedef void _seg * memptr; void main(/*int argc, char *argv[]*/) { - short bee=0; + unsigned bee=0; memptr pee; - printf("bee=%Fp\n", &bee); + printf("local variable bee=%Fp\n", &bee); printf("pee=%Fp\n", pee); printf("pee=%p\n", pee); printf("pee=%x\n", pee); - printf("pee=%u\n", pee); } diff --git a/16/segm/w.bat b/16/segm/w.bat index 82c3c09d..257607cd 100644 --- a/16/segm/w.bat +++ b/16/segm/w.bat @@ -1,18 +1,21 @@ @echo off +echo ==This is the results of open watcom's base pointers== > wpee +echo These are the various memory models of the 8088 that are demonstrated here! >> wpee +echo ==tiny is not found so default== >> wpee wcc -0 -mt pee.c -pee.exe > wpee -echo "====" >> wpee +pee.exe >> wpee +echo ==small== >> wpee wcc -0 -ms pee.c pee.exe >> wpee -echo "====" >> wpee +echo ==medium== >> wpee wcc -0 -mm pee.c pee.exe >> wpee -echo "====" >> wpee +echo ==compact is what project 16 uses== >> wpee wcc -0 -mc pee.c pee.exe >> wpee -echo "====" >> wpee +echo ==large== >> wpee wcc -0 -ml pee.c pee.exe >> wpee -echo "====" >> wpee +echo ==HUGE GUTS!== >> wpee wcl -0 -mh pee.c pee.exe >> wpee \ No newline at end of file