mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-11-09 17:50:30 +01:00
CRT.Write/WriteLn bugfix © 0CodErr
This commit is contained in:
parent
6ee928a133
commit
6f73b7be3f
@ -231,24 +231,20 @@ function Write(Format: PKolibriChar; const Args: array of const): Integer;
|
||||
const
|
||||
VarArgSize = SizeOf(TVarRec);
|
||||
asm
|
||||
PUSH EDI
|
||||
PUSH EBX
|
||||
MOV EBX, ESP
|
||||
|
||||
INC ECX
|
||||
JZ @@call
|
||||
@@arg:
|
||||
MOV EDI, [EDX + ECX * VarArgSize - VarArgSize]
|
||||
PUSH EDI
|
||||
PUSH dword [EDX + ECX * VarArgSize - VarArgSize]
|
||||
LOOP @@arg
|
||||
@@call:
|
||||
PUSH ESP
|
||||
PUSH EAX
|
||||
CALL PrintF
|
||||
|
||||
MOV ESP, EBX
|
||||
POP EBX
|
||||
POP EDI
|
||||
end;
|
||||
|
||||
procedure WriteLn(LineBreaks: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user