File: [local] / OpenXM_contrib2 / asir2000 / engine-27 / Attic / asmiw-27.c (download)
Revision 1.1.1.1 (vendor branch), Fri Dec 3 07:39:08 1999 UTC (24 years, 8 months ago) by noro
Branch: NORO
CVS Tags: RELEASE_20000124, RELEASE_1_1_2, ASIR2000 Changes since 1.1: +0 -0
lines
Imported asir2000 as OpenXM_contrib2/asir2000.
|
/* $OpenXM: OpenXM_contrib2/asir2000/engine-27/asmiw-27.c,v 1.1.1.1 1999/12/03 07:39:08 noro Exp $ */
unsigned int dm_27(a1,a2,u)
unsigned int a1,a2,*u;
{
__asm
{
mov eax,a1
mul a2
shl edx,5
mov ecx,eax
shr ecx,27
or edx,ecx
and eax,134217727
mov ebx,u
mov DWORD PTR [ebx],edx
}
}
unsigned int dma_27(a1,a2,a3,u)
unsigned int a1,a2,a3,*u;
{
__asm
{
mov eax,a1
mul a2
add eax,a3
adc edx,0
shl edx,5
mov ecx,eax
shr ecx,27
or edx,ecx
and eax,134217727
mov ebx,u
mov DWORD PTR [ebx],edx
}
}