shithub: pokecrystal

ref: a147c35540f4010b495cc1ba990320eeb4af1b35
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