Rev 1971 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1971 | Rev 2153 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | @end0: |
60 | @end0: |
61 | $pop ecx |
61 | $pop ecx |
62 | $pop ebx |
62 | $pop ebx |
63 | $pop eax |
63 | $pop eax |
64 | } |
64 | } |
- | 65 | ||
- | 66 | //stdcall dword ?? |
|
- | 67 | inline fastcall mem_Move( EDI, ESI, ECX) |
|
- | 68 | { |
|
- | 69 | asm { |
|
- | 70 | mov eax, ecx |
|
- | 71 | cmp edi, esi |
|
- | 72 | jg l1 |
|
- | 73 | je l2 |
|
- | 74 | sar ecx, 2 |
|
- | 75 | js l2 |
|
- | 76 | rep movsd |
|
- | 77 | mov ecx, eax |
|
- | 78 | and ecx, 3 |
|
- | 79 | rep movsb |
|
- | 80 | jmp short l2 |
|
- | 81 | l1: lea esi, dsdword[ esi+ecx-4] |
|
- | 82 | lea edi, dsdword[ edi+ecx-4] |
|
- | 83 | sar ecx, 2 |
|
- | 84 | js l2 |
|
- | 85 | std |
|
- | 86 | rep movsd |
|
- | 87 | mov ecx, eax |
|
- | 88 | and ecx, 3 |
|
- | 89 | add esi, 3 |
|
- | 90 | add edi, 3 |
|
- | 91 | rep movsb |
|
- | 92 | cld |
|
- | 93 | l2: |
|
- | 94 | } |
|
- | 95 | } |