forked from KolibriOS/kolibrios
Change "mov reg, 0" to "xor reg, reg" where it's possible
git-svn-id: svn://kolibrios.org@9977 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
34d6f8189f
commit
a772f5b96f
@ -115,7 +115,7 @@ proc skip_line
|
|||||||
endp
|
endp
|
||||||
|
|
||||||
proc dec2bin
|
proc dec2bin
|
||||||
mov edx, 0
|
xor edx, edx
|
||||||
.next_char:
|
.next_char:
|
||||||
movzx eax, byte[esi]
|
movzx eax, byte[esi]
|
||||||
test eax, eax
|
test eax, eax
|
||||||
|
@ -131,7 +131,7 @@ skip_line:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
dec2bin:
|
dec2bin:
|
||||||
mov edx, 0
|
xor edx, edx
|
||||||
.next_char:
|
.next_char:
|
||||||
movzx eax, byte[rsi]
|
movzx eax, byte[rsi]
|
||||||
test eax, eax
|
test eax, eax
|
||||||
|
@ -179,7 +179,7 @@ LAPIC_init:
|
|||||||
mov [esi + APIC_TPR], eax
|
mov [esi + APIC_TPR], eax
|
||||||
|
|
||||||
; Flush the queue
|
; Flush the queue
|
||||||
mov edx, 0
|
xor edx, edx
|
||||||
.nxt2:
|
.nxt2:
|
||||||
mov ecx, 32
|
mov ecx, 32
|
||||||
mov eax, [esi + APIC_ISR + edx]
|
mov eax, [esi + APIC_ISR + edx]
|
||||||
|
@ -18,7 +18,7 @@ conf_path_sect:
|
|||||||
|
|
||||||
conf_fname db '/sys/sys.conf',0
|
conf_fname db '/sys/sys.conf',0
|
||||||
endg
|
endg
|
||||||
; set soke kernel configuration
|
; set kernel configuration
|
||||||
proc set_kernel_conf
|
proc set_kernel_conf
|
||||||
locals
|
locals
|
||||||
par db 30 dup(?)
|
par db 30 dup(?)
|
||||||
@ -88,7 +88,7 @@ else
|
|||||||
end if
|
end if
|
||||||
unet_def db 0
|
unet_def db 0
|
||||||
endg
|
endg
|
||||||
; convert string to DWord
|
; convert string to dword
|
||||||
proc strtoint stdcall,strs
|
proc strtoint stdcall,strs
|
||||||
pushad
|
pushad
|
||||||
|
|
||||||
@ -113,11 +113,11 @@ proc strtoint stdcall,strs
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
; convert string to DWord for decimal value
|
; convert string to dword for decimal value
|
||||||
proc strtoint_dec stdcall,strs
|
proc strtoint_dec stdcall,strs
|
||||||
pushad
|
pushad
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
; поиск конца
|
; search for the end
|
||||||
mov esi, [strs]
|
mov esi, [strs]
|
||||||
@@:
|
@@:
|
||||||
lodsb
|
lodsb
|
||||||
@ -133,16 +133,13 @@ proc strtoint_dec stdcall,strs
|
|||||||
dec ebx
|
dec ebx
|
||||||
or ebx, ebx
|
or ebx, ebx
|
||||||
jz @f
|
jz @f
|
||||||
imul ecx, ecx, 10; порядок
|
imul ecx, ecx, 10 ; order
|
||||||
jmp @b
|
jmp @b
|
||||||
@@:
|
@@:
|
||||||
|
|
||||||
xchg ebx, ecx
|
xchg ebx, ecx
|
||||||
|
|
||||||
|
|
||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
|
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
lodsb
|
lodsb
|
||||||
@ -166,7 +163,7 @@ proc strtoint_dec stdcall,strs
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
;convert string to DWord for hex value
|
; convert string to dword for hex value
|
||||||
proc strtoint_hex stdcall, strs
|
proc strtoint_hex stdcall, strs
|
||||||
pushad
|
pushad
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
@ -221,12 +218,12 @@ proc strtoint_hex stdcall,strs
|
|||||||
endp
|
endp
|
||||||
|
|
||||||
|
|
||||||
; convert string to DWord for IP addres
|
; convert string to dword for IP address
|
||||||
proc do_inet_adr stdcall, strs
|
proc do_inet_adr stdcall, strs
|
||||||
pushad
|
pushad
|
||||||
|
|
||||||
mov esi, [strs]
|
mov esi, [strs]
|
||||||
mov ebx, 0
|
xor ebx, ebx
|
||||||
.next:
|
.next:
|
||||||
push esi
|
push esi
|
||||||
@@:
|
@@:
|
||||||
|
@ -136,7 +136,7 @@ proc load_k_library stdcall, file_name:dword
|
|||||||
@@:
|
@@:
|
||||||
mov edx, [coff]
|
mov edx, [coff]
|
||||||
movzx ebx, [edx + CFH.nSections]
|
movzx ebx, [edx + CFH.nSections]
|
||||||
mov edi, 0
|
xor edi, edi
|
||||||
lea eax, [edx+20]
|
lea eax, [edx+20]
|
||||||
@@:
|
@@:
|
||||||
add [eax + CFS.VirtualAddress], edi ;patch user space offset
|
add [eax + CFS.VirtualAddress], edi ;patch user space offset
|
||||||
|
@ -168,7 +168,7 @@ align 4
|
|||||||
align 4
|
align 4
|
||||||
novesal:
|
novesal:
|
||||||
mov [novesachecksum], ecx
|
mov [novesachecksum], ecx
|
||||||
xor ecx, ecx ;mov ecx, 0
|
xor ecx, ecx
|
||||||
movzx eax, word [MOUSE_Y]
|
movzx eax, word [MOUSE_Y]
|
||||||
cmp eax, 100
|
cmp eax, 100
|
||||||
jge m13l3
|
jge m13l3
|
||||||
|
Loading…
Reference in New Issue
Block a user