* replaced setintvec(x,@proc) in i8086 tests with the memory model independent version setintvec(x,ptr(seg(proc),ofs(proc)))

git-svn-id: trunk@32249 -
This commit is contained in:
nickysn 2015-11-05 14:18:55 +00:00
parent 4f54f8b3bd
commit 8c81e93a96
8 changed files with 14 additions and 14 deletions

View File

@ -120,9 +120,9 @@ var
g32: longint;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
asm
int NearInt

View File

@ -96,9 +96,9 @@ label
lbl;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
testproc2;
asm

View File

@ -96,9 +96,9 @@ label
lbl;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
testproc2;
asm

View File

@ -120,9 +120,9 @@ var
g32: longint;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
asm
int NearInt

View File

@ -47,7 +47,7 @@ begin
Handled := False;
GetIntVec(IntNo, OldHandler);
SetIntVec(IntNo, @OurHandler);
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
Intr(IntNo, regs);

View File

@ -71,7 +71,7 @@ begin
Handled := False;
GetIntVec(IntNo, OldHandler);
SetIntVec(IntNo, @OurHandler);
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
Intr(IntNo, regs);

View File

@ -156,9 +156,9 @@ end;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
TestAsm1;
TestAsm2;

View File

@ -156,9 +156,9 @@ end;
begin
GetIntVec(NearInt, OldNearIntVec);
SetIntVec(NearInt, @IntNearHandler);
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
GetIntVec(FarInt, OldFarIntVec);
SetIntVec(FarInt, @IntFarHandler);
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
TestAsm1;
TestAsm2;