1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
.text:00417310 ; int __cdecl AddToCentre(float, int, int)
.text:00417310 ?AddToCentre@@YAXMAAM0@Z proc near ; CODE XREF: SYS_DI::ReadInputs(void)+92A>p
.text:00417310 ; SYS_DI::ReadInputs(void)+941>p ...
.text:00417310
.text:00417310 arg_0 = dword ptr 4
.text:00417310 arg_4 = dword ptr 8
.text:00417310 arg_8 = dword ptr 0Ch
.text:00417310
.text:00417310 mov ecx, [esp+arg_8]
.text:00417314 mov edx, [esp+arg_4]
.text:00417318 fld ds:flt_62A354
.text:0041731E fcomp dword ptr [ecx]
.text:00417320 fld [esp+arg_0]
.text:00417324 fnstsw ax
.text:00417326 test ah, 5 ;********* HERE IS THE DIFERENCE
.text:00417329 jp short loc_41737F ;********
.text:0041732B fld dword ptr [ecx]
.text:0041732D fcomp ds:flt_62A358
.text:00417333 fnstsw ax
.text:00417335 test ah, 5
.text:00417338 jp short loc_41737F
.text:0041733A fld ds:flt_62A354
.text:00417340 fcomp st(1)
.text:00417342 fnstsw ax
.text:00417344 test ah, 5
.text:00417347 jp short loc_41737F
.text:00417349 fcom ds:flt_62A358
.text:0041734F fnstsw ax
.text:00417351 test ah, 5
.text:00417354 jp short loc_41737F
.text:00417356 fld dword ptr [edx]
.text:00417358 fsub ds:flt_62A35C
.text:0041735E fcomp st(1)
.text:00417360 fnstsw ax
.text:00417362 test ah, 41h
.text:00417365 jp short loc_41737F
.text:00417367 fld ds:flt_62A35C
.text:0041736D fadd dword ptr [edx]
.text:0041736F fld st(1)
.text:00417371 fcompp
.text:00417373 fnstsw ax
.text:00417375 test ah, 41h
.text:00417378 jp short loc_41737F
.text:0041737A fst dword ptr [ecx]
.text:0041737C fstp dword ptr [edx]
.text:0041737E retn
.text:0041737F ;
|
.text:0041737F
.text:0041737F loc_41737F: ; CODE XREF: AddToCentre(float,float &,float &)+19<j
.text:0041737F ; AddToCentre(float,float &,float &)+28<j ...
.text:0041737F mov dword ptr [ecx], 0
.text:00417385 fstp dword ptr [edx]
.text:00417387 retn
.text:00417387 ?AddToCentre@@YAXMAAM0@Z endp |