/programs/system/colrdial/color_dialog.asm |
---|
658,7 → 658,7 |
;output: |
; eax - number |
align 4 |
proc conv_str_to_int uses ebx ecx esi, buf:dword |
proc conv_str_to_int uses ebx esi, buf:dword |
xor eax,eax |
xor ebx,ebx |
mov esi,[buf] |
690,11 → 690,6 |
inc esi |
jmp .cycle_16 |
@@: |
cmp ecx,0 ;if the number is negative |
jne @f |
sub ecx,eax |
mov eax,ecx |
@@: |
ret |
endp |
;--------------------------------------------------------------------- |