MODE 7 DIM code% NOTEND AND 2047, code% 2047 DIM result 27 |result = 11.87655 |(result+8) = 17.87655 |(result+16) = 0.1 FOR opt% = 0 TO 2 STEP 2 P% = code% [ OPT opt% .start mov eax, 0 mov DWORD [result+24], 0 fld QWORD [result] fld QWORD [result+16] faddp ST1, ST0 fcomp QWORD [result+8] fstsw ax wait sahf ja next_calc mov DWORD [result+24], 2 ret .next_calc mov eax, 0 fld QWORD [result] fld QWORD [result+16] fsubp ST1, ST0 fcomp QWORD [result+8] mov eax, 0 fstsw ax wait sahf jb end mov DWORD [result+24], 3 ret .end mov DWORD [result+24], 1 ret ] NEXT CALL start PRINT !(result+24)
|