pokecrystal-board/home/sine.asm
2018-06-24 16:13:22 +02:00

10 lines
149 B
NASM

Cosine::
; a = d * cos(a * pi/32)
add %010000 ; cos(x) = sin(x + pi/2)
; fallthrough
Sine::
; a = d * sin(a * pi/32)
ld e, a
homecall _Sine
ret