mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* 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:
parent
4f54f8b3bd
commit
8c81e93a96
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,7 @@ begin
|
||||
Handled := False;
|
||||
|
||||
GetIntVec(IntNo, OldHandler);
|
||||
SetIntVec(IntNo, @OurHandler);
|
||||
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
|
||||
|
||||
Intr(IntNo, regs);
|
||||
|
||||
|
@ -71,7 +71,7 @@ begin
|
||||
Handled := False;
|
||||
|
||||
GetIntVec(IntNo, OldHandler);
|
||||
SetIntVec(IntNo, @OurHandler);
|
||||
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
|
||||
|
||||
Intr(IntNo, regs);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user