diff options
Diffstat (limited to 'macros')
-rw-r--r-- | macros/data.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/data.asm b/macros/data.asm index 5b9614fe..36854d79 100644 --- a/macros/data.asm +++ b/macros/data.asm @@ -124,10 +124,10 @@ endr ENDM sine_table: MACRO -; \1: amplitude +; \1 samples of sin(x) from x=0 to x<32768 (pi radians) x = 0 -rept 32 +rept \1 dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up -x = x + (\1) * $40000 +x = x + DIV(32768, \1); a circle has 65536 "degrees" endr ENDM |