diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index 79e5a64a88..79c865de04 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -884,8 +884,8 @@ proc new_sys_threads .get_lock: mov eax, 1 xchg eax, [application_table_status] - cmp eax, 0 - jne .wait_lock + test eax, eax + jnz .wait_lock call set_application_table_status @@ -934,7 +934,7 @@ proc new_sys_threads stdcall user_alloc, 4096 pop edx test eax, eax - jz .failed + jz .failed1 ;eax=0 @@: mov [edx+APPDATA.tls_base], eax @@ -943,14 +943,16 @@ proc new_sys_threads dword 0,dword 0 ;mov esi,new_process_running - ;call sys_msg_board_str ;output information about succefull startup - - mov [application_table_status],0 ;unlock application_table_status mutex - mov eax,[process_number] ;set result + ;call sys_msg_board_str ;output information about succefull startup + xor eax,eax + mov [application_table_status],eax ;unlock application_table_status mutex + mov eax,[process_number] ;set result ret .failed: - mov [application_table_status],0 - mov eax,-1 + xor eax,eax +.failed1: + mov [application_table_status],eax + dec eax ;-1 ret endp @@ -1114,9 +1116,9 @@ proc set_app_params stdcall,slot:dword, params:dword,\ mov [ebx+4],eax ;set PID ;set draw data to full screen - - mov [ecx+0],dword 0 - mov [ecx+4],dword 0 + xor eax,eax + mov [ecx+0],dword eax + mov [ecx+4],dword eax mov eax,[Screen_Max_X] mov [ecx+8],eax mov eax,[Screen_Max_Y] diff --git a/kernel/trunk/fs/fat12.inc b/kernel/trunk/fs/fat12.inc index 08e4858b70..52cec3ff35 100644 --- a/kernel/trunk/fs/fat12.inc +++ b/kernel/trunk/fs/fat12.inc @@ -65,13 +65,13 @@ floppy_fileread: mov [save_flag],0 mov [path_pointer_flp],edi - cmp esi,0 ; return ramdisk root - jne fr_noroot_1 + test esi,esi ; return ramdisk root + jnz fr_noroot_1 cmp ebx,224/16 jbe fr_do_1 mov eax,5 - mov ebx,0 - mov [flp_status],0 + xor ebx,ebx + mov [flp_status],ebx ret fr_do_1: @@ -2134,7 +2134,7 @@ fs_FloppySetFileInfo: popa pop edi xor eax, eax - cmp [FDC_Status], 0 + cmp [FDC_Status], al jz @f mov al, 11 @@: diff --git a/kernel/trunk/fs/iso9660.inc b/kernel/trunk/fs/iso9660.inc index 8f0555e29c..dad1361bf8 100644 --- a/kernel/trunk/fs/iso9660.inc +++ b/kernel/trunk/fs/iso9660.inc @@ -5,7 +5,7 @@ ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -$Revision$ +$Revision:1322 $ uglobal @@ -625,8 +625,8 @@ cd_get_name: mov ebp,[cd_current_pointer_of_input_2] mov [cd_current_pointer_of_input],ebp mov eax,[ebp] - cmp eax,0 ; входы закончились? - je .next_sector + test eax,eax ; входы закончились? + jz .next_sector cmp ebp,CDDataBuf+2048 ; буфер закончился? jae .next_sector movzx eax, byte [ebp] diff --git a/kernel/trunk/video/vesa12.inc b/kernel/trunk/video/vesa12.inc index 6f7d275038..6034790759 100644 --- a/kernel/trunk/video/vesa12.inc +++ b/kernel/trunk/video/vesa12.inc @@ -258,7 +258,7 @@ vesa12_drawbackground: mov [imax],eax mov eax,[draw_data+32+RECT.left] mov ebx,[draw_data+32+RECT.top] - mov edi,0 ;no force + xor edi,edi ;no force v12dp3: