+ implemented dos.SwapVectors for i8086-msdos

git-svn-id: trunk@27156 -
This commit is contained in:
nickysn 2014-03-16 12:37:52 +00:00
parent 07c3762164
commit 044a744ba8

View File

@ -745,21 +745,18 @@ begin
end; end;
type swap_proc = procedure; procedure SwapIntVec(IntNo: Byte; var Vector: FarPointer);
var var
_swap_in : swap_proc;external name '_swap_in'; tmpvec: FarPointer;
_swap_out : swap_proc;external name '_swap_out';
_exception_exit : pointer;external name '_exception_exit';
_v2prt0_exceptions_on : longbool;external name '_v2prt0_exceptions_on';
procedure swapvectors;
begin begin
if _exception_exit<>nil then GetIntVec(IntNo, tmpvec);
if _v2prt0_exceptions_on then SetIntVec(IntNo, Vector);
_swap_out() Vector := tmpvec;
else end;
_swap_in();
procedure SwapVectors;
begin
SwapIntVec(0, SaveInt00);
end; end;