home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
turbopas
/
tpuobj.arc
/
TPINIT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-04-04
|
619b
|
45 lines
{ define CRT}
unit tpinit;
interface
uses
{$ifdef CRTUNIT}
CRT,
{$endif}
DOS;
procedure tpinit_0;
procedure saveBP_0;
procedure restoreBP_0;
implementation
var
BP : word;
procedure tpinit_0;
begin
setintVec($00,SaveInt00);
setintVec($02,SaveInt02);
{$ifdef CRTUNIT}
setintVec($1B,SaveInt1B);
{$endif}
setintVec($23,SaveInt23);
setintVec($24,SaveInt24);
setintVec($75,SaveInt75);
end;
procedure SaveBP_0;
begin
inline( $58/$50/$BF/BP/$89/$05 );
end;
procedure RestoreBP_0;
begin
inline( $58/$BF/BP/$8B/$05/$50 );
end;
end.