mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -04:00
Added as10k1 tool (EMU10K1 FX8010 DSP assembler).
This commit is contained in:
parent
a4569af2bb
commit
f2d80b5b5d
28 changed files with 3523 additions and 0 deletions
29
as10k1/examples/sine.asm
Normal file
29
as10k1/examples/sine.asm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name "Sine wave Gen"
|
||||
include "emu_constants.asm"
|
||||
|
||||
in io
|
||||
out equ in
|
||||
|
||||
|
||||
delta control $3afa691,0,$7fffffff ; controls frequency
|
||||
|
||||
|
||||
cosx control #1,0,#1 ; amplitude of sinewave
|
||||
sinx sta 0
|
||||
|
||||
|
||||
|
||||
macs sinx,sinx,delta,cosx
|
||||
macs1 cosx,cosx,delta,sinx
|
||||
macmv out,cosx,C_0,C_0
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue