mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 22:49:17 +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;
|
g32: longint;
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
asm
|
asm
|
||||||
int NearInt
|
int NearInt
|
||||||
|
@ -96,9 +96,9 @@ label
|
|||||||
lbl;
|
lbl;
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
testproc2;
|
testproc2;
|
||||||
asm
|
asm
|
||||||
|
@ -96,9 +96,9 @@ label
|
|||||||
lbl;
|
lbl;
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
testproc2;
|
testproc2;
|
||||||
asm
|
asm
|
||||||
|
@ -120,9 +120,9 @@ var
|
|||||||
g32: longint;
|
g32: longint;
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
asm
|
asm
|
||||||
int NearInt
|
int NearInt
|
||||||
|
@ -47,7 +47,7 @@ begin
|
|||||||
Handled := False;
|
Handled := False;
|
||||||
|
|
||||||
GetIntVec(IntNo, OldHandler);
|
GetIntVec(IntNo, OldHandler);
|
||||||
SetIntVec(IntNo, @OurHandler);
|
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
|
||||||
|
|
||||||
Intr(IntNo, regs);
|
Intr(IntNo, regs);
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ begin
|
|||||||
Handled := False;
|
Handled := False;
|
||||||
|
|
||||||
GetIntVec(IntNo, OldHandler);
|
GetIntVec(IntNo, OldHandler);
|
||||||
SetIntVec(IntNo, @OurHandler);
|
SetIntVec(IntNo, Ptr(Seg(OurHandler),Ofs(OurHandler)));
|
||||||
|
|
||||||
Intr(IntNo, regs);
|
Intr(IntNo, regs);
|
||||||
|
|
||||||
|
@ -156,9 +156,9 @@ end;
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
TestAsm1;
|
TestAsm1;
|
||||||
TestAsm2;
|
TestAsm2;
|
||||||
|
@ -156,9 +156,9 @@ end;
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
GetIntVec(NearInt, OldNearIntVec);
|
GetIntVec(NearInt, OldNearIntVec);
|
||||||
SetIntVec(NearInt, @IntNearHandler);
|
SetIntVec(NearInt, Ptr(Seg(IntNearHandler),Ofs(IntNearHandler)));
|
||||||
GetIntVec(FarInt, OldFarIntVec);
|
GetIntVec(FarInt, OldFarIntVec);
|
||||||
SetIntVec(FarInt, @IntFarHandler);
|
SetIntVec(FarInt, Ptr(Seg(IntFarHandler),Ofs(IntFarHandler)));
|
||||||
|
|
||||||
TestAsm1;
|
TestAsm1;
|
||||||
TestAsm2;
|
TestAsm2;
|
||||||
|
Loading…
Reference in New Issue
Block a user