use "x + -1" not "x +- 1"
(TODO: use "x - 1" once rgbds allows it)
This commit is contained in:
@@ -112,7 +112,7 @@ ENDM
|
||||
|
||||
|
||||
sine_wave: MACRO
|
||||
x = 0
|
||||
x = 0.0
|
||||
rept \1
|
||||
dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up
|
||||
x = x + (32768.0 / \1) ; a circle has 65536.0 "degrees"
|
||||
|
Reference in New Issue
Block a user