From 32cfc0676c7d16702423daa55fe1162ed9ee65e3 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 29 Dec 2014 18:25:19 +0000 Subject: [PATCH] stdcall functions should restore ebx git-svn-id: svn://kolibrios.org@5288 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/nsider/kolibrisys/_ksys_files_acces.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/games/nsider/kolibrisys/_ksys_files_acces.asm b/programs/games/nsider/kolibrisys/_ksys_files_acces.asm index 78ba060e04..43ecac19e8 100644 --- a/programs/games/nsider/kolibrisys/_ksys_files_acces.asm +++ b/programs/games/nsider/kolibrisys/_ksys_files_acces.asm @@ -9,7 +9,7 @@ public __ksys_rewritefile public __ksys_appendtofile align 4 -proc __ksys_get_filesize stdcall, filename:dword +proc __ksys_get_filesize stdcall uses ebx, filename:dword xor eax,eax mov ebx,[filename] @@ -37,7 +37,7 @@ endp align 4 -proc __ksys_readfile stdcall,filename:dword,position:dword,sizeblock:dword,buffer:dword +proc __ksys_readfile stdcall uses ebx,filename:dword,position:dword,sizeblock:dword,buffer:dword xor eax,eax mov ebx,[position] @@ -60,7 +60,7 @@ proc __ksys_readfile stdcall,filename:dword,position:dword,sizeblock:dword,buffe endp align 4 -proc __ksys_rewritefile stdcall,filename:dword,sizeblock:dword,data_write:dword +proc __ksys_rewritefile stdcall uses ebx,filename:dword,sizeblock:dword,data_write:dword xor eax,eax mov ebx,[sizeblock] @@ -82,7 +82,7 @@ proc __ksys_rewritefile stdcall,filename:dword,sizeblock:dword,data_write:dword endp align 4 -proc __ksys_appendtofile stdcall,filename:dword,pos:dword,sizeblock:dword,data_append:dword +proc __ksys_appendtofile stdcall uses ebx,filename:dword,pos:dword,sizeblock:dword,data_append:dword xor eax,eax mov ebx,[pos]