C4 Op 13 speedups

This commit is contained in:
n-a-c-h
2003-06-08 01:14:49 +00:00
parent cc6fd2b622
commit b02607c0e1

View File

@@ -2197,23 +2197,21 @@ C4activate:
pushad pushad
mov esi,[C4Ram] mov esi,[C4Ram]
xor eax,eax xor eax,eax
xor ebx,ebx
xor ecx,ecx xor ecx,ecx
mov cx,[esi+1F80h] mov cx,[esi+1F80h]
and ecx,1FFh and ecx,1FFh
movsx ebx,word[CosTable+ecx*2] movsx ebx,word[CosTable+ecx*2]
mov ax,[esi+1F83h] mov ax,[esi+1F83h]
imul ebx,2 add ebx,ebx
imul eax,ebx imul eax,ebx
sar eax,8 sar eax,8
mov [esi+1F86h],ax mov [esi+1F86h],ax
sar eax,16 sar eax,16
mov [esi+1F88h],al mov [esi+1F88h],al
xor eax,eax xor eax,eax
xor ebx,ebx
movsx ebx,word[SinTable+ecx*2] movsx ebx,word[SinTable+ecx*2]
mov ax,[esi+1F83h] mov ax,[esi+1F83h]
imul ebx,2 add ebx,ebx
imul eax,ebx imul eax,ebx
sar eax,8 sar eax,8
mov [esi+1F89h],ax mov [esi+1F89h],ax