home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dspgroup / m56000_1.arc / FFT.ASM < prev    next >
Encoding:
Assembly Source File  |  1986-03-14  |  561 b   |  34 lines

  1.     page    132,66,3,3
  2.     opt    nomd,mex,cre,cex,mu,rc
  3.  
  4.     include    'sintab'
  5.     include 'ditfft'
  6. ;
  7. ; Main program to call the FFT macro
  8. ;
  9. ;    N point complex DIT FFT
  10. ;    M FFT passes
  11. ;    Data starts at address 0
  12. ;    Twiddle factor table starts at address N
  13. ;
  14. ; Command line example for a 16 point FFT:
  15. ;
  16. ;    asm56000 -b -l -dPOINTS '16' -dPASSES '4' fft
  17. ;
  18.  
  19. points    equ    POINTS
  20. passes    equ    PASSES
  21. twiddle    equ    POINTS
  22. reset    equ    0
  23. data    equ    0
  24. start    equ    $100
  25.  
  26.     sintab    points,twiddle
  27.  
  28.     org    p:reset
  29.     jmp    start
  30.  
  31.     org    p:start
  32.     ditfft    points,passes,data,twiddle
  33.     end
  34.