Improved C4 Op 13 even more (thanks TRAC)

This commit is contained in:
n-a-c-h
2003-06-08 03:56:30 +00:00
parent b02607c0e1
commit d0c386e4ad

View File

@@ -2196,27 +2196,25 @@ C4activate:
.polarcord2 .polarcord2
pushad pushad
mov esi,[C4Ram] mov esi,[C4Ram]
xor eax,eax
xor ecx,ecx xor ecx,ecx
mov cx,[esi+1F80h] mov cx,[esi+1F80h]
and ecx,1FFh and ecx,1FFh
movsx eax,word[esi+1F83h]
add eax,eax
movsx ebx,word[CosTable+ecx*2] movsx ebx,word[CosTable+ecx*2]
mov ax,[esi+1F83h] imul ebx,eax
add ebx,ebx sar ebx,8
imul eax,ebx adc ebx,0
sar eax,8 mov [esi+1F86h],bx
mov [esi+1F86h],ax sar ebx,16
sar eax,16 mov [esi+1F88h],bl
mov [esi+1F88h],al
xor eax,eax
movsx ebx,word[SinTable+ecx*2] movsx ebx,word[SinTable+ecx*2]
mov ax,[esi+1F83h] imul ebx,eax
add ebx,ebx sar ebx,8
imul eax,ebx adc ebx,0
sar eax,8 mov [esi+1F89h],bx
mov [esi+1F89h],ax sar ebx,16
sar eax,16 mov [esi+1F8Bh],bl
mov [esi+1F8Bh],al
popad popad
ret ret
.dosprites .dosprites