forked from KolibriOS/kolibrios
con_init: save ebx, as required
git-svn-id: svn://kolibrios.org@2170 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
91a2e78dd1
commit
8a41ae1b3e
@ -38,19 +38,21 @@ con_init:
|
|||||||
pop [con.scr_height]
|
pop [con.scr_height]
|
||||||
pop [con.title]
|
pop [con.title]
|
||||||
push eax
|
push eax
|
||||||
|
|
||||||
|
push ebx
|
||||||
|
|
||||||
mov ecx, 4
|
mov ecx, 4
|
||||||
mov eax, con.wnd_width
|
mov eax, con.wnd_width
|
||||||
mov esi, con.def_wnd_width
|
mov edx, con.def_wnd_width
|
||||||
.1:
|
.1:
|
||||||
cmp dword [eax], -1
|
cmp dword [eax], -1
|
||||||
jnz @f
|
jnz @f
|
||||||
mov ebx, [esi]
|
mov ebx, [edx]
|
||||||
mov [eax], ebx
|
mov [eax], ebx
|
||||||
@@:
|
@@:
|
||||||
add eax, 4
|
add eax, 4
|
||||||
add esi, 4
|
add edx, 4
|
||||||
loop .1
|
loop .1
|
||||||
push ebx
|
|
||||||
; allocate memory for console data & bitmap data
|
; allocate memory for console data & bitmap data
|
||||||
mov eax, [con.scr_width]
|
mov eax, [con.scr_width]
|
||||||
mul [con.scr_height]
|
mul [con.scr_height]
|
||||||
|
Loading…
Reference in New Issue
Block a user