From 80d33b91c31975c43a44de4e156cd089186cf469 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 16 Jun 2013 08:00:48 +0000 Subject: [PATCH] SEARCHAP - optimizing the size of binary file. Thanks to comrade 0CodErr. git-svn-id: svn://kolibrios.org@3668 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/searchap/searchap.asm | 76 +++++++++++++-------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/programs/system/searchap/searchap.asm b/programs/system/searchap/searchap.asm index 04af24e702..604a9babe5 100644 --- a/programs/system/searchap/searchap.asm +++ b/programs/system/searchap/searchap.asm @@ -36,6 +36,43 @@ dd stacktop dd 0x0 dd 0x0 +;--------------------------------------------------------------------- +fileinfo: +.subfunction dd 5 +.Offset dd 0 +.Offset_1 dd 0 +.size dd 0 +.return dd folder_data + db 0 +.name: dd basic_file_path +;--------------------------------------------------------------------- +read_folder: +.subfunction dd 1 +.start dd 0 +.flags dd 0 +.size dd 32 +.return dd folder_data + db 0 +.name: dd read_folder_name +;--------------------------------------------------------------------- +read_folder_1: +.subfunction dd 1 +.start dd 0 +.flags dd 0 +.size dd 32 +.return dd folder_data_1 + db 0 +.name: dd read_folder_1_name +;--------------------------------------------------------------------- +start_dir: + db '/',0 +;------------------------------------------------------------------------------- +basic_file_path: + db '/rd/1/' +basic_file_name: + db 'kolibri.lbl',0 +additional_dir_name: + db 'addappl',0 ;------------------------------------------------------------------------------- debug equ no ;yes @@ -327,7 +364,7 @@ end if ret .sucess: call compare_files_and_mount - cmp [compare_flag],0 + cmp [compare_flag],byte 0 jne @b ret ;--------------------------------------------------------------------- @@ -443,43 +480,6 @@ dps '----------' newline ret end if -;--------------------------------------------------------------------- -read_folder: -.subfunction dd 1 -.start dd 0 -.flags dd 0 -.size dd 32 -.return dd folder_data - db 0 -.name: dd read_folder_name -;--------------------------------------------------------------------- -read_folder_1: -.subfunction dd 1 -.start dd 0 -.flags dd 0 -.size dd 32 -.return dd folder_data_1 - db 0 -.name: dd read_folder_1_name -;--------------------------------------------------------------------- -fileinfo: -.subfunction dd 5 -.Offset dd 0 -.Offset_1 dd 0 -.size dd 0 -.return dd folder_data - db 0 -.name: dd basic_file_path -;--------------------------------------------------------------------- -start_dir: - db '/',0 -;------------------------------------------------------------------------------- -basic_file_path: - db '/rd/1/' -basic_file_name: - db 'kolibri.lbl',0 -additional_dir_name: - db 'addappl',0 ;------------------------------------------------------------------------------- IM_END: ;-------------------------------------------------------------------------------