From afab218ec4a0114c8b5a1870d4ae1134b5f2f92d Mon Sep 17 00:00:00 2001 From: IgorA Date: Fri, 16 Sep 2011 18:43:27 +0000 Subject: [PATCH] h2d2b - restore key [Enter] git-svn-id: svn://kolibrios.org@2201 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/h2d2b/trunk/h2d2b.asm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/programs/develop/h2d2b/trunk/h2d2b.asm b/programs/develop/h2d2b/trunk/h2d2b.asm index bdc664e50b..6445be922f 100644 --- a/programs/develop/h2d2b/trunk/h2d2b.asm +++ b/programs/develop/h2d2b/trunk/h2d2b.asm @@ -53,8 +53,15 @@ still: key: ; нажата клавиша на клавиатуре mcall 2 - stdcall [edit_box_key], dword edit1 - jmp still ; вернуться к началу цикла + cmp ah,13 ;обработка кнопки Enter + je @f + stdcall [edit_box_key], dword edit1 + jmp still + @@: + mov edi,string1 + add edi,[edit1.size] ;устанавливаем в edi конец строки + jmp read_str + jmp still ; вернуться к началу цикла read_str: dec edi