+ added checks for the Program Segment Prefix's relative position to the code

segment in the compact and large memory layout tests

git-svn-id: trunk@28074 -
This commit is contained in:
nickysn 2014-06-26 09:58:12 +00:00
parent be0afd9625
commit 57de15e071
2 changed files with 8 additions and 0 deletions

View File

@ -48,10 +48,15 @@ begin
DS := DSeg;
SS := SSeg;
HS := Seg(HeapP^);
Writeln('PrefixSeg=', PrefixSeg);
Writeln('CS=', CS);
Writeln('DS=', DS);
Writeln('SS=', SS);
Writeln('Heap Seg=', HS);
if not (PrefixSeg < CS) then
Error('PrefixSeg >= CS');
if (CS - PrefixSeg) <> 16 then
Error('(CS - PrefixSeg) <> 16');
if not (CS < DS) then
Error('CS >= DS');
if not (DS < SS) then

View File

@ -44,10 +44,13 @@ begin
DS := DSeg;
SS := SSeg;
HS := Seg(HeapP^);
Writeln('PrefixSeg=', PrefixSeg);
Writeln('CS=', CS);
Writeln('DS=', DS);
Writeln('SS=', SS);
Writeln('Heap Seg=', HS);
if not (PrefixSeg < CS) then
Error('PrefixSeg >= CS');
if not (CS < DS) then
Error('CS >= DS');
if not (DS < SS) then