Relative Content

Tag Archive for assemblyfloating-pointnasmdivision

How to divide float number by integer in assembly x64

mov eax,5 for: ;(future tag for loop) call Putere movsd xmm2,xmm1 div xmm2,eax movsd xmm0,xmm2 xmm1 correctly calculates a variable x raised to the power of eax. eax will be the index for a loop and I need to divide xmm2 by eax at every step until 0. Is there any way to do this […]