From: sparky4 Date: Tue, 28 Jul 2015 16:09:37 +0000 (-0500) Subject: more on segment experiment X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=cde5e45436b6cbf32c05f34d79e2b4a0c1318e89;p=16.git more on segment experiment modified: 16/segm/BPEE modified: 16/segm/PEE.EXE modified: 16/segm/WPEE modified: 16/segm/pee.c --- diff --git a/16/segm/BPEE b/16/segm/BPEE index 3b0c51e9..f131e9b1 100644 --- a/16/segm/BPEE +++ b/16/segm/BPEE @@ -1,26 +1,32 @@ ==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= 168E:FFF4 -far pointer value of pee= 168E:168E -pointer value of pee= 168E +local variable bee= 16B8:FFF4 +local variable bee= FFF4 +far pointer value of pee= 16B8:16B8 +pointer value of pee= 16B8 ==small== -local variable bee= 0116:FFF4 -far pointer value of pee= 0116:0116 -pointer value of pee= 0116 +local variable bee= 0130:FFF4 +local variable bee= FFF4 +far pointer value of pee= 0130:0130 +pointer value of pee= 0130 ==medium== -local variable bee= 02FB:FFF2 -far pointer value of pee= 02FB:02FB -pointer value of pee= 02FB +local variable bee= 0340:FFF2 +local variable bee= FFF2 +far pointer value of pee= 0340:0340 +pointer value of pee= 0340 ==compact is what project 16 uses== -local variable bee= 04DC:1000 -far pointer value of pee= 0104:0104 -pointer value of pee= 0104:0104 +local variable bee= 0524:1000 +local variable bee= 0524:1000 +far pointer value of pee= 011E:011E +pointer value of pee= 011E:011E ==large== -local variable bee= 04E7:0FFE -far pointer value of pee= 02FB:02FB -pointer value of pee= 02FB:02FB +local variable bee= 0530:0FFE +local variable bee= 0530:0FFE +far pointer value of pee= 0340:0340 +pointer value of pee= 0340:0340 ==HUGE GUTS!== -local variable bee= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 054F:0FFE +local variable bee= 054F:0FFE +far pointer value of pee= 0510:0134 +pointer value of pee= 0510:0134 diff --git a/16/segm/PEE.EXE b/16/segm/PEE.EXE index 9322ef7f..d251d9ce 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 66f69454..918ae5bf 100644 --- a/16/segm/WPEE +++ b/16/segm/WPEE @@ -1,26 +1,27 @@ ==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= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 06ae:0bfc +far pointer value of pee= 06ae:0000 +pointer value of pee= 06ae:0000 ==small== -local variable bee= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 06ae:0bfc +far pointer value of pee= 06ae:0000 +pointer value of pee= 06ae:0000 ==medium== -local variable bee= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 06ae:0bfc +far pointer value of pee= 06ae:0000 +pointer value of pee= 06ae:0000 ==compact is what project 16 uses== -local variable bee= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 06ae:0bfc +far pointer value of pee= 06ae:0000 +pointer value of pee= 06ae:0000 ==large== -local variable bee= 0508:0FFE -far pointer value of pee= 04C9:0134 -pointer value of pee= 04C9:0134 +local variable bee= 06ae:0bfc +far pointer value of pee= 06ae:0000 +pointer value of pee= 06ae:0000 ==HUGE GUTS!== -local variable bee= 0669:0bfc -far pointer value of pee= 0669:0000 -pointer value of pee= 0669:0000 +local variable bee= 06af:0c0a +local variable bee= 06af:0c0a +far pointer value of pee= 06af:0000 +pointer value of pee= 06af:0000 diff --git a/16/segm/pee.c b/16/segm/pee.c index 6ac4cbee..bb4708d8 100644 --- a/16/segm/pee.c +++ b/16/segm/pee.c @@ -36,6 +36,7 @@ main(/*int argc, char *argv[]*/) unsigned bee=0; memptr pee; 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); }