From 8a41ae1b3ec5af703edbd856600066fd89ad0f8c Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 11 Sep 2011 07:01:06 +0000 Subject: [PATCH] con_init: save ebx, as required git-svn-id: svn://kolibrios.org@2170 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/console/console.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/programs/develop/libraries/console/console.asm b/programs/develop/libraries/console/console.asm index daaf8fa4d1..ae06e347a2 100644 --- a/programs/develop/libraries/console/console.asm +++ b/programs/develop/libraries/console/console.asm @@ -38,19 +38,21 @@ con_init: pop [con.scr_height] pop [con.title] push eax + + push ebx + mov ecx, 4 mov eax, con.wnd_width - mov esi, con.def_wnd_width + mov edx, con.def_wnd_width .1: cmp dword [eax], -1 jnz @f - mov ebx, [esi] + mov ebx, [edx] mov [eax], ebx @@: add eax, 4 - add esi, 4 + add edx, 4 loop .1 - push ebx ; allocate memory for console data & bitmap data mov eax, [con.scr_width] mul [con.scr_height]