Improved C4 Op 13 even more (thanks TRAC)
This commit is contained in:
@@ -2194,29 +2194,27 @@ C4activate:
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
.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
|
||||||
|
|||||||
Reference in New Issue
Block a user