Rev 5907 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5907 | Rev 5913 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | add eax, [_dst] |
31 | add eax, [_dst] |
32 | stdcall string.copy, [_src], eax |
32 | stdcall string.copy, [_src], eax |
33 | ret |
33 | ret |
34 | endp |
34 | endp |
Line 35... | Line -... | ||
35 | - | ||
36 | proc string.compare uses ebx ecx edx, _str1, _str2 |
- | |
37 | mov eax, 0 |
- | |
38 | mov ebx, [_str1] |
- | |
39 | mov ecx, [_str2] |
- | |
40 | @@: |
- | |
41 | mov dl, [ebx] |
- | |
42 | cmp dl, [ecx] |
- | |
43 | jne .not_eq |
- | |
44 | cmp dl, 0 |
- | |
45 | je @f |
- | |
46 | cmp [ecx], byte 0 |
- | |
47 | je @f |
- | |
48 | inc ebx |
- | |
49 | inc ecx |
- | |
50 | jmp @b |
- | |
51 | .not_eq: |
- | |
52 | mov eax, -1 |
- | |
53 | @@: |
- | |
54 | inc eax |
- | |
55 | ret |
- | |
56 | endp |
- | |
57 | 35 | ||
58 | proc string.cmp uses ecx esi edi, _str1, _str2, _n |
36 | proc string.cmp uses ecx esi edi, _str1, _str2, _n |
59 | mov ecx, [_n] |
37 | mov ecx, [_n] |
60 | test ecx, ecx ; Max length is zero? |
38 | test ecx, ecx ; Max length is zero? |