From ef2a2e0e6a41d0601087d6445f5b808638d6b88b Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 25 Oct 2006 10:28:41 +0000 Subject: [PATCH] Now memory amount is printed in bootlog git-svn-id: svn://kolibrios.org@194 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 4da51b04ff..8b98b2cb02 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -1271,7 +1271,7 @@ display_number: and eax,0x3f push eax mov edi,esp - add edi,4+64 + add edi,4+64-1 mov ecx,eax mov eax,ebx mov ebx,10 @@ -1295,7 +1295,7 @@ display_number: and eax,0x3f push eax mov edi,esp - add edi,4+64 + add edi,4+64-1 mov ecx,eax mov eax,ebx mov ebx,16 @@ -1320,7 +1320,7 @@ display_number: and eax,0x3f push eax mov edi,esp - add edi,4+64 + add edi,4+64-1 mov ecx,eax mov eax,ebx mov ebx,2 @@ -1361,10 +1361,9 @@ draw_num_text: ; rol eax,16 mov edx,eax - mov ecx,65 + mov ecx,64+4 sub ecx,eax add ecx,esp - add ecx,4 mov eax,[esp+64+32-8+4] push edx ; add window start x & y mov edx,[0x3010] @@ -1378,7 +1377,7 @@ draw_num_text: mov ebx,[esp+64+32-12+4] and ebx, not 0x80000000 ; force counted string mov esi, [esp+64+4+4] - xor edi,edi + mov edi, [esp+64+4] jmp dtext read_string: