shithub: pokecrystal

ref: 4f0c9cecf9a4c9dec50e2a5fce8392c2217068e0
dir: /home/sine.asm/

View raw version
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