harmonic series with x86-64 assembly
问题 Trying to compute a harmonic series. Right now I'm entering the number I want the addition to go up to. When I enter a small number like 1.2, the program just stops, doesn't crash, it seems to be doing calculations. BUt it never finishes the program here is my code denominator: xor r14,r14 ;zero out r14 register add r14, 2 ;start counter at 2 fld1 ;load 1 into st0 fxch st2 denomLoop: fld1 mov [divisor], r14 ;put 1 into st0 fidiv dword [divisor] ;divide st0 by r14 inc r14 ;increment r14 fst