mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +02:00
+ 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:
parent
be0afd9625
commit
57de15e071
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user