Sin: resw 256

PrepareSinus:
  mov di,Sin
  mov cx,256
  mov dword [temp1],0
  .ps_loop:
    fild dword [temp1]
    fldpi
    fmulp st1,st0
    fdiv dword [valeur128]
    fsin
    fmul dword [valeur255]
    fistp dword [temp2]
    wait
    mov ax,[temp2]
    mov [di],ax
    inc di
    inc di
    inc dword [temp1]
  loop .ps_loop
ret