shithub: pokecrystal

ref: a0e8e5ac5b7d91451ce6eac4c7c65641f7e5a59c
dir: /home/sine.asm/

View raw version
Cosine:: ; unreferenced
; 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