;sine wave generator equ freq reg0 equ s reg1 equ c reg2 equ p0fil reg3 ;coarse frequency control filter equ p2fil reg4 ;output level control filter equ amp reg5 ;output amplitude skp run,2 SOF 0,0.5 ;setup LFO with amplitude of 0.5 wrax s,0 ;c is initialized to zero on startup rdax pot1,1 ;get fine freq control sof 0.01,-0.005 ;scale to proper exponential limits rdax pot0,0.625 ;add coarse freq control sof 1,-0.66 exp 1,0 rdfx p0fil,0.01 ;average with filter wrax p0fil,1 wrax freq,0 rdax pot2,15/16 ;set up pot2 for db/step amplitude control rdfx p2fil,0.01 wrax p2fil,1 sof 1,-15/16 exp 1,0 wrax amp,0 rdax c,1 ;oversample the oscillator to reach 20KHz easily. mulx freq rdax s,1 wrax s,-1 mulx freq rdax c,1 wrax c,0 rdax c,1 mulx freq rdax s,1 wrax s,-1 mulx freq rdax c,1 wrax c,0 rdax c,1 mulx freq rdax s,1 wrax s,-1 mulx freq rdax c,1 wrax c,0 rdax c,1 mulx freq rdax s,1 wrax s,-1 mulx freq rdax c,1 wrax c,1.99 mulx amp ;scale output wrax dacl,1 wrax dacr,0 ;write both outputs 我爱AV,haose,吾爱av,奇米色,奇米网,奇米影视,奇米第四色在线影院