VC代码转换成汇编语言,高分,高手来
将下述代码转换成汇编语言,除了循环变量,剩下变量都是float,高分!谢谢!for(intCntr1=0;Cntr1<c_nPOINTS;Cntr1++){Cose=*(...
将下述代码转换成汇编语言,除了循环变量,剩下变量都是float,高分!谢谢!
for(int Cntr1 = 0 ; Cntr1 < c_nPOINTS ; Cntr1++ )
{
Cose = *(Cos_Addr + Cntr1 );
Sine = *(Sin_Addr + Cntr1 );
int nCntr2 = (Cntr1 << 1);
Real = *(DataInAddr + nCntr2);
Imag = *(DataInAddr + nCntr2 + 1);
KData = *(KaiserData + Cntr1);
R_Sum += KData * (Real * Cose - Imag * Sine);
I_Sum += KData * (Imag * Cose + Real * Sine);
} 展开
for(int Cntr1 = 0 ; Cntr1 < c_nPOINTS ; Cntr1++ )
{
Cose = *(Cos_Addr + Cntr1 );
Sine = *(Sin_Addr + Cntr1 );
int nCntr2 = (Cntr1 << 1);
Real = *(DataInAddr + nCntr2);
Imag = *(DataInAddr + nCntr2 + 1);
KData = *(KaiserData + Cntr1);
R_Sum += KData * (Real * Cose - Imag * Sine);
I_Sum += KData * (Imag * Cose + Real * Sine);
} 展开
1个回答
展开全部
for(int Cntr1 = 0 ; Cntr1 < c_nPOINTS ; Cntr1++ )
004309A4 mov dword ptr [Cntr1],0
004309AE jmp main+6Fh (4309BFh)
004309B0 mov eax,dword ptr [Cntr1]
004309B6 add eax,1
004309B9 mov dword ptr [Cntr1],eax
004309BF fild dword ptr [Cntr1]
004309C5 fld dword ptr [c_nPOINTS]
004309CB fcompp
004309CD fnstsw ax
004309CF test ah,41h
004309D2 jne main+1D5h (430B25h)
{
Cose = *(Cos_Addr + Cntr1 );
004309D8 cmp byte ptr [ebp-1A9h],0
004309DF jne main+9Eh (4309EEh)
004309E1 push offset (430B66h)
004309E6 call @ILT+2050(__RTC_UninitUse) (42E807h)
004309EB add esp,4
004309EE mov eax,dword ptr [Cntr1]
004309F4 mov ecx,dword ptr [Cos_Addr]
004309F7 fld dword ptr [ecx+eax*4]
004309FA fstp dword ptr [Cose]
Sine = *(Sin_Addr + Cntr1 );
004309FD cmp byte ptr [ebp-19Dh],0
00430A04 jne main+0C3h (430A13h)
00430A06 push offset (430B5Dh)
00430A0B call @ILT+2050(__RTC_UninitUse) (42E807h)
00430A10 add esp,4
00430A13 mov eax,dword ptr [Cntr1]
00430A19 mov ecx,dword ptr [Sin_Addr]
00430A1C fld dword ptr [ecx+eax*4]
00430A1F fstp dword ptr [Sine]
int nCntr2 = (Cntr1 << 1);
00430A22 mov eax,dword ptr [Cntr1]
00430A28 shl eax,1
00430A2A mov dword ptr [nCntr2],eax
Real = *(DataInAddr + nCntr2);
00430A30 cmp byte ptr [ebp-191h],0
00430A37 jne main+0F6h (430A46h)
00430A39 push offset (430B52h)
00430A3E call @ILT+2050(__RTC_UninitUse) (42E807h)
00430A43 add esp,4
00430A46 mov eax,dword ptr [nCntr2]
00430A4C mov ecx,dword ptr [DataInAddr]
00430A4F fld dword ptr [ecx+eax*4]
00430A52 fstp dword ptr [Real]
Imag = *(DataInAddr + nCntr2 + 1);
00430A55 cmp byte ptr [ebp-191h],0
00430A5C jne main+11Bh (430A6Bh)
00430A5E push offset (430B52h)
00430A63 call @ILT+2050(__RTC_UninitUse) (42E807h)
00430A68 add esp,4
00430A6B mov eax,dword ptr [nCntr2]
00430A71 mov ecx,dword ptr [DataInAddr]
00430A74 fld dword ptr [ecx+eax*4+4]
00430A78 fstp dword ptr [Imag]
KData = *(KaiserData + Cntr1);
00430A7B cmp byte ptr [ebp-185h],0
00430A82 jne main+141h (430A91h)
00430A84 push offset (430B47h)
00430A89 call @ILT+2050(__RTC_UninitUse) (42E807h)
00430A8E add esp,4
00430A91 mov eax,dword ptr [Cntr1]
00430A97 mov ecx,dword ptr [KaiserData]
00430A9A fld dword ptr [ecx+eax*4]
00430A9D fstp dword ptr [KData]
R_Sum += KData * (Real * Cose - Imag * Sine);
00430AA0 cmp byte ptr [ebp-179h],0
00430AA7 jne main+166h (430AB6h)
00430AA9 push offset (430B41h)
00430AAE call @ILT+2050(__RTC_UninitUse) (42E807h)
00430AB3 add esp,4
00430AB6 fld dword ptr [Real]
00430AB9 fmul dword ptr [Cose]
00430ABC fld dword ptr [Imag]
00430ABF fmul dword ptr [Sine]
00430AC2 fsubp st(1),st
00430AC4 fmul dword ptr [KData]
00430AC7 fadd dword ptr [R_Sum]
00430ACA fstp dword ptr [ebp-1B4h]
00430AD0 fld dword ptr [ebp-1B4h]
00430AD6 mov byte ptr [ebp-179h],1
00430ADD fstp dword ptr [R_Sum]
I_Sum += KData * (Imag * Cose + Real * Sine);
00430AE0 cmp byte ptr [ebp-16Dh],0
00430AE7 jne main+1A6h (430AF6h)
00430AE9 push offset (430B3Bh)
00430AEE call @ILT+2050(__RTC_UninitUse) (42E807h)
00430AF3 add esp,4
00430AF6 fld dword ptr [Imag]
00430AF9 fmul dword ptr [Cose]
00430AFC fld dword ptr [Real]
00430AFF fmul dword ptr [Sine]
00430B02 faddp st(1),st
00430B04 fmul dword ptr [KData]
00430B07 fadd dword ptr [I_Sum]
00430B0A fstp dword ptr [ebp-1B4h]
00430B10 fld dword ptr [ebp-1B4h]
00430B16 mov byte ptr [ebp-16Dh],1
00430B1D fstp dword ptr [I_Sum]
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询