+ added several necessary system unit routines

git-svn-id: branches/i8086@23864 -
This commit is contained in:
nickysn 2013-03-16 14:00:32 +00:00
parent 8f984e75e5
commit 88fe359644

View File

@ -87,6 +87,7 @@ begin
end;
{$endif not FULL_RTL}
procedure DebugWrite(const S: string);
begin
asm
@ -110,4 +111,59 @@ begin
DebugWrite(#13#10);
end;
{*****************************************************************************
ParamStr/Randomize
*****************************************************************************}
function paramcount : longint;
begin
paramcount := 0;
end;
function paramstr(l : longint) : string;
begin
paramstr := '';
end;
procedure randomize;
begin
end;
{*****************************************************************************
System Dependent Exit code
*****************************************************************************}
procedure system_exit;
begin
asm
mov al, byte [exitcode]
mov ah, 4Ch
int 21h
end;
end;
{*****************************************************************************
SystemUnit Initialization
*****************************************************************************}
procedure SysInitStdIO;
begin
{ OpenStdIO(Input,fmInput,StdInputHandle);
OpenStdIO(Output,fmOutput,StdOutputHandle);
OpenStdIO(ErrOutput,fmOutput,StdErrorHandle);
OpenStdIO(StdOut,fmOutput,StdOutputHandle);
OpenStdIO(StdErr,fmOutput,StdErrorHandle);}
end;
function GetProcessID: SizeUInt;
begin
GetProcessID := 1;
end;
function CheckInitialStkLen(stklen : SizeUInt) : SizeUInt;
begin
result := stklen;
end;
end.