mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 02:19:24 +02:00
+ implemented dos.Keep for i8086-msdos; simple dos TSRs now work
git-svn-id: trunk@24730 -
This commit is contained in:
parent
e243b6b869
commit
4b3c67c51a
@ -89,6 +89,7 @@ type
|
||||
{$DEFINE HAS_SWAPVECTORS}
|
||||
{$DEFINE HAS_GETINTVEC}
|
||||
{$DEFINE HAS_SETINTVEC}
|
||||
{$DEFINE HAS_KEEP}
|
||||
{$DEFINE HAS_GETSHORTNAME}
|
||||
{$DEFINE HAS_GETLONGNAME}
|
||||
|
||||
@ -954,6 +955,21 @@ asm
|
||||
pop ds
|
||||
end;
|
||||
|
||||
{******************************************************************************
|
||||
--- Keep ---
|
||||
******************************************************************************}
|
||||
|
||||
Procedure Keep(exitcode: word); assembler;
|
||||
asm
|
||||
mov bx, dos_psp
|
||||
dec bx
|
||||
mov es, bx
|
||||
mov dx, es:[3]
|
||||
mov al, exitcode
|
||||
mov ah, 31h
|
||||
int 21h
|
||||
end;
|
||||
|
||||
{$ifdef DEBUG_LFN}
|
||||
begin
|
||||
LogLFN:=(GetEnv('LOGLFN')<>'');
|
||||
|
Loading…
Reference in New Issue
Block a user