From b20ee6ddec3e55b917a4baae4988dbab3c4dadb2 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 2 Sep 2011 20:06:10 +0000 Subject: [PATCH] KFM - small optimization git-svn-id: svn://kolibrios.org@2148 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/kfm/trunk/build.bat | 5 ++++- programs/fs/kfm/trunk/kfm.asm | 26 +++++++++++++++----------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/programs/fs/kfm/trunk/build.bat b/programs/fs/kfm/trunk/build.bat index 6b26fa6e25..ae14b401ad 100644 --- a/programs/fs/kfm/trunk/build.bat +++ b/programs/fs/kfm/trunk/build.bat @@ -1,2 +1,5 @@ -fasm kfm.asm kfm +@echo lang fix en >lang.inc +@fasm -m 16384 kfm.asm kfm +@erase lang.inc +@kpack kfm @pause diff --git a/programs/fs/kfm/trunk/kfm.asm b/programs/fs/kfm/trunk/kfm.asm index 7803644994..97fdde8707 100644 --- a/programs/fs/kfm/trunk/kfm.asm +++ b/programs/fs/kfm/trunk/kfm.asm @@ -53,17 +53,21 @@ include 'files.inc' STRLEN = 1024 ;--------------------------------------------------------------------- START: - mcall 9, procinfo, -1 - mov eax,[ebx+30] - mov [PID],eax - xor ecx,ecx -@@: - inc ecx - mcall 9, procinfo - mov eax,[PID] - cmp eax,[ebx+30] - jne @r - mov [active_process],ecx +; mcall 9, procinfo, -1 +; mov eax,[ebx+30] +; mov [PID],eax +; xor ecx,ecx +;@@: +; inc ecx +; mcall 9, procinfo +; mov eax,[PID] +; cmp eax,[ebx+30] +; jne @r +; mov [active_process],ecx + mcall 9,procinfo,-1 + mov ecx,[ebx+30] ; PID + mcall 18,21 + mov [active_process],eax ; WINDOW SLOT mov [appl_memory],mem mov ax,[select_disk_char] mov [read_folder_name],ax