From e8b7507165ffd39af785c428c98e5a3f16c58955 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Thu, 10 Feb 2011 16:30:05 +0000 Subject: [PATCH] snake: i586 fix - cmovnz replaced git-svn-id: svn://kolibrios.org@1861 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/snake/trunk/snake.asm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/programs/games/snake/trunk/snake.asm b/programs/games/snake/trunk/snake.asm index ad1fb0e612..240384857a 100644 --- a/programs/games/snake/trunk/snake.asm +++ b/programs/games/snake/trunk/snake.asm @@ -358,7 +358,9 @@ Set_geometry: add eax, 5*2 ; skin width mov esi, eax test [proc_info.wnd_state], 0x01 - cmovnz eax, [proc_info.box.width] + jz @f + mov eax, [proc_info.box.width] + @@: mov [window_width], eax sub eax, [gw_mul_gs] @@ -376,7 +378,9 @@ Set_geometry: add eax, 5 ; skin height (bottom part) mov edi, eax test [proc_info.wnd_state], 0x01 - cmovnz eax, [proc_info.box.height] + jz @f + mov eax, [proc_info.box.height] + @@: mov [window_height], eax sub eax, [gh_mul_gs]