Rev 2085 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2085 | Rev 2239 | ||
---|---|---|---|
Line 267... | Line 267... | ||
267 | }while(DSBYTE[ESI]>0); |
267 | }while(DSBYTE[ESI]>0); |
268 | IF(DSBYTE[EDI]=='-') -EAX; |
268 | IF(DSBYTE[EDI]=='-') -EAX; |
269 | } |
269 | } |
Line 270... | Line -... | ||
270 | - | ||
271 | - | ||
272 | /*int strcmp(char* string1, char* string2) |
- | |
273 | { |
- | |
274 | loop () |
- | |
275 | { |
- | |
276 | IF (*string1<*string2) RETURN -1; |
- | |
277 | IF (*string1>*string2) RETURN 1; |
- | |
278 | IF (*string1=='\0') RETURN 0; |
- | |
279 | string1++; |
- | |
280 | string2++; |
- | |
281 | } |
- | |
282 | }*/ |
- | |
283 | 270 | ||
284 | 271 | ||
285 | inline fastcall int strcmp(ESI, EDI) |
272 | inline fastcall int strcmp(ESI, EDI) |
286 | { |
273 | { |
287 | loop() |
274 | loop() |
Line 304... | Line 291... | ||
304 | } while(AL!=0); |
291 | } while(AL!=0); |
305 | return last; |
292 | return last; |
306 | } |
293 | } |
Line 307... | Line -... | ||
307 | - | ||
308 | - | ||
309 | dword StrToCol(char* htmlcolor) |
- | |
310 | { |
- | |
311 | dword j=1, color=0; char ch=0x00; |
- | |
312 | IF (ESBYTE[htmlcolor]<>'#') RETURN; |
- | |
313 | FOR (;j<7;j++) |
- | |
314 | { |
- | |
315 | ch=ESBYTE[htmlcolor+j]; |
- | |
316 | IF ((ch>='0') && (ch<='9')) ch -= '0'; |
- | |
317 | IF ((ch>='A') && (ch<='F')) ch -= 'A'-10; |
- | |
318 | IF ((ch>='a') && (ch<='f')) ch -= 'a'-10; |
- | |
319 | color = color*0x10 + ch; |
- | |
320 | } |
- | |
321 | EAX=color; |
- | |
322 | } |
294 | |
323 | 295 | ||
324 | inline fastcall dword upcase(dword ESI) |
296 | inline fastcall dword upcase(dword ESI) |
325 | { |
297 | { |
326 | do{ |
298 | do{ |