Rev 7163 | Rev 7439 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7163 | Rev 7286 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | $inc text2 |
178 | $inc text2 |
179 | } |
179 | } |
180 | return 0; |
180 | return 0; |
181 | } |
181 | } |
Line -... | Line 182... | ||
- | 182 | ||
- | 183 | /* |
|
- | 184 | TODO: rewrite streq() using pure assembliy |
|
182 | 185 | ||
- | 186 | inline fastcall void strcpy( EDI, ESI) |
|
- | 187 | { |
|
- | 188 | $cld |
|
- | 189 | L2: |
|
- | 190 | $lodsb |
|
- | 191 | $stosb |
|
- | 192 | $test al,al |
|
- | 193 | $jnz L2 |
|
- | 194 | } |
|
- | 195 | */ |
|
- | 196 | ||
- | 197 | inline fastcall streq(ESI, EDI) |
|
- | 198 | { |
|
- | 199 | loop() |
|
- | 200 | { |
|
- | 201 | if(DSBYTE[ESI]==DSBYTE[EDI]) |
|
183 | :bool strequ(dword text1, text2) { |
202 | { |
- | 203 | if(DSBYTE[ESI]==0) return true; |
|
- | 204 | } |
|
- | 205 | else { |
|
- | 206 | return false; |
|
- | 207 | } |
|
- | 208 | ESI++; |
|
- | 209 | EDI++; |
|
- | 210 | } |
|
184 | if (!strcmp(text1,text2)) return true; else return false; |
211 | return true; |
Line 185... | Line 212... | ||
185 | } |
212 | } |
186 | 213 | ||
187 | /* |
214 | /* |