mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
11 lines
170 B
NASM
11 lines
170 B
NASM
Cosine:: ; 1b0f
|
|
; a = d * cos(a * pi/32)
|
|
add %010000 ; cos(x) = sin(x + pi/2)
|
|
; fallthrough
|
|
Sine:: ; 1b11
|
|
; a = d * sin(a * pi/32)
|
|
ld e, a
|
|
homecall _Sine
|
|
ret
|
|
; 1b1e
|