From fa85d01ecbf4e2da3ac192e1a24fef61ef0cf105 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 23 Jul 2015 12:58:43 -0500 Subject: [PATCH] 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 --- 16/segm/BPEE | 65 +++++++++++++++++++++++------------------------- 16/segm/PEE.EXE | Bin 15292 -> 15284 bytes 16/segm/WPEE | 55 +++++++++++++++++++--------------------- 16/segm/b.bat | 15 ++++++----- 16/segm/pee.c | 5 ++-- 16/segm/w.bat | 15 ++++++----- 6 files changed, 77 insertions(+), 78 deletions(-) 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: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om'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 -- 2.39.5